forked from zircote/swagger-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPetsController.php
89 lines (84 loc) · 2.32 KB
/
PetsController.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<?php
namespace petstore;
class PetsController
{
/**
* @OA\Get(
* path="/pets",
* summary="List all pets",
* operationId="listPets",
* tags={"pets"},
* @OA\Parameter(
* name="limit",
* in="query",
* description="How many items to return at one time (max 100)",
* required=false,
* @OA\Schema(
* type="integer",
* format="int32"
* )
* ),
* @OA\Response(
* response=200,
* description="An paged array of pets",
* @OA\Schema(ref="#/components/schemas/Pets"),
* @OA\Header(header="x-next", @OA\Schema(type="string"), description="A link to the next page of responses")
* ),
* @OA\Response(
* response="default",
* description="unexpected error",
* @OA\Schema(ref="#/components/schemas/Error")
* )
* )
*/
public function listPets()
{
}
/**
* @OA\Post(
* path="/pets",
* summary="Create a pet",
* operationId="createPets",
* tags={"pets"},
* @OA\Response(response=201, description="Null response"),
* @OA\Response(
* response="default",
* description="unexpected error",
* @OA\Schema(ref="#/components/schemas/Error")
* )
* )
*/
public function createPets()
{
}
/**
* @OA\Get(
* path="/pets/{petId}",
* summary="Info for a specific pet",
* operationId="showPetById",
* tags={"pets"},
* @OA\Parameter(
* name="petId",
* in="path",
* required=true,
* description="The id of the pet to retrieve",
* @OA\Schema(
* type="string"
* )
* ),
* @OA\Response(
* response=200,
* description="Expected response to a valid request",
* @OA\Schema(ref="#/components/schemas/Pets")
* ),
* @OA\Response(
* response="default",
* description="unexpected error",
* @OA\Schema(ref="#/components/schemas/Error")
* )
* )
*/
public function showPetById($id)
{
}
}