| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343 |
- <?php
- namespace PetstoreIO;
- final class PetController
- {
- /**
- * @OA\Get(
- * path="/pet/findByTags",
- * summary="Finds Pets by tags",
- * tags={"pet"},
- * description="Muliple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.",
- * operationId="findPetsByTags",
- * @OA\Parameter(
- * name="tags",
- * in="query",
- * description="Tags to filter by",
- * required=true,
- * @OA\Schema(
- * type="array",
- * @OA\Items(type="string"),
- * ),
- * style="form"
- * ),
- * @OA\Response(
- * response=200,
- * description="successful operation",
- * @OA\Schema(
- * type="array",
- * @OA\Items(ref="#/components/schemas/Pet")
- * ),
- * ),
- * @OA\Response(
- * response="400",
- * description="Invalid tag value",
- * ),
- * security={
- * {"petstore_auth": {"write:pets", "read:pets"}}
- * },
- * deprecated=true
- * )
- */
- public function findByTags()
- {
- }
- /**
- * @OA\Get(
- * path="/pet/findByStatus",
- * summary="Finds Pets by status",
- * description="Multiple status values can be provided with comma separated strings",
- * operationId="findPetsByStatus",
- * tags={"pet"},
- * @OA\Parameter(
- * name="status",
- * in="query",
- * description="Status values that need to be considered for filter",
- * required=true,
- * @OA\Schema(
- * type="array",
- * @OA\Items(
- * type="string",
- * enum={"available", "pending", "sold"},
- * default="available"
- * ),
- * ),
- * style="form"
- * ),
- * @OA\Response(
- * response=200,
- * description="successful operation",
- * @OA\JsonContent(
- * type="array",
- * @OA\Items(ref="#/components/schemas/Pet")
- * )
- * ),
- * @OA\Response(
- * response="400",
- * description="Invalid status value",
- * ),
- * security={
- * {"petstore_auth": {"write:pets", "read:pets"}}
- * }
- * )
- */
- public function findByStatus()
- {
- }
- /**
- * @OA\Get(
- * path="/pet/{petId}",
- * summary="Find pet by ID",
- * description="Returns a single pet",
- * operationId="getPetById",
- * tags={"pet"},
- * @OA\Parameter(
- * description="ID of pet to return",
- * in="path",
- * name="petId",
- * required=true,
- * @OA\Schema(
- * type="integer",
- * format="int64"
- * )
- * ),
- * @OA\Response(
- * response=200,
- * description="successful operation",
- * @OA\JsonContent(ref="#/components/schemas/Pet")
- * ),
- * @OA\Response(
- * response="400",
- * description="Invalid ID supplied"
- * ),
- * @OA\Response(
- * response="404",
- * description="Pet not found"
- * ),
- * security={
- * {"api_key": {}}
- * }
- * )
- */
- public function getPetById()
- {
- }
- /**
- * @OA\Post(
- * path="/pet",
- * tags={"pet"},
- * operationId="addPet",
- * summary="Add a new pet to the store",
- * description="",
- * @OA\RequestBody(
- * description="Pet object that needs to be added to the store",
- * required=true,
- * @OA\JsonContent(ref="#/components/schemas/Pet"),
- * @OA\MediaType(
- * mediaType="application/xml",
- * @OA\Schema(ref="#/components/schemas/Pet")
- * ),
- * ),
- * @OA\RequestBody(
- * description="Pet object that needs to be added to the store",
- * required=true,
- * @OA\MediaType(
- * mediaType="application/xml",
- * @OA\Schema(ref="#/components/schemas/Pet")
- * )
- * ),
- * @OA\Response(
- * response=405,
- * description="Invalid input",
- * ),
- * security={{"petstore_auth":{"write:pets", "read:pets"}}}
- * )
- */
- public function addPet()
- {
- }
- /**
- * @OA\Put(
- * path="/pet",
- * tags={"pet"},
- * operationId="updatePet",
- * summary="Update an existing pet",
- * description="",
- * @OA\RequestBody(
- * required=true,
- * description="Pet object that needs to be added to the store",
- * @OA\JsonContent(ref="#/components/schemas/Pet"),
- * @OA\MediaType(
- * mediaType="application/xml",
- * @OA\Schema(ref="#/components/schemas/Pet"),
- * )
- * ),
- * @OA\Response(
- * response=400,
- * description="Invalid ID supplied",
- * ),
- * @OA\Response(
- * response=404,
- * description="Pet not found",
- * ),
- * @OA\Response(
- * response=405,
- * description="Validation exception",
- * ),
- * security={{"petstore_auth":{"write:pets", "read:pets"}}}
- * )
- */
- public function updatePet()
- {
- }
- /**
- * @OA\Delete(
- * path="/pet/{petId}",
- * summary="Deletes a pet",
- * description="",
- * operationId="deletePet",
- * tags={"pet"},
- * @OA\Parameter(
- * description="Pet id to delete",
- * in="path",
- * name="petId",
- * required=true,
- * @OA\Schema(
- * type="integer",
- * format="int64"
- * )
- * ),
- * @OA\Header(
- * header="api_key",
- * description="Api key header",
- * required=false,
- * @OA\Schema(
- * type="string"
- * )
- * ),
- * @OA\Response(
- * response=400,
- * description="Invalid ID supplied"
- * ),
- * @OA\Response(
- * response=404,
- * description="Pet not found"
- * ),
- * security={{"petstore_auth":{"write:pets", "read:pets"}}}
- * )
- */
- public function deletePet()
- {
- }
- /**
- * @OA\Post(
- * path="/pet/{petId}",
- * tags={"pet"},
- * summary="Updates a pet in the store with form data",
- * description="",
- * operationId="updatePetWithForm",
- * @OA\RequestBody(
- * required=false,
- * @OA\MediaType(
- * mediaType="application/x-www-form-urlencoded",
- * @OA\Schema(
- * type="object",
- * @OA\Property(
- * property="name",
- * description="Updated name of the pet",
- * type="string"
- * ),
- * @OA\Property(
- * property="status",
- * description="Updated status of the pet",
- * type="string"
- * ),
- * )
- * )
- * ),
- * @OA\Parameter(
- * name="petId",
- * in="path",
- * description="ID of pet that needs to be updated",
- * required=true,
- * @OA\Schema(
- * type="integer",
- * format="int64"
- * )
- * ),
- * @OA\Response(response="405",description="Invalid input"),
- * security={{
- * "petstore_auth": {"write:pets", "read:pets"}
- * }}
- * )
- */
- public function updatePetWithForm()
- {
- }
- /**
- * @OA\Post(
- * path="/pet/{petId}/uploadImage",
- * description="",
- * summary="uploads an image",
- * operationId="uploadFile",
- * @OA\RequestBody(
- * required=true,
- * @OA\MediaType(
- * mediaType="multipart/form-data",
- * @OA\Schema(
- * @OA\Property(
- * description="Additional data to pass to server",
- * property="additionalMetadata",
- * type="string"
- * ),
- * @OA\Property(
- * description="file to upload",
- * property="file",
- * type="string",
- * format="file",
- * ),
- * required={"file"}
- * )
- * )
- * ),
- * @OA\Parameter(
- * description="ID of pet to update",
- * in="path",
- * name="petId",
- * required=true,
- * @OA\Schema(
- * type="integer",
- * format="int64"
- * ),
- * ),
- * @OA\Response(
- * response="200",
- * description="successful operation",
- * @OA\Schema(ref="#/components/schemas/ApiResponse")
- * ),
- * security={
- * {
- * "petstore_auth": {
- * "read:pets",
- * "write:pets"
- * }
- * }
- * },
- * tags={
- * "pet"
- * }
- * )
- * */
- public function uploadFile()
- {
- }
- }
|