| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193 |
- <?php
- namespace Petstore;
- class SimplePetsController
- {
- /**
- * @OA\Get(
- * path="/pets",
- * description="Returns all pets from the system that the user has access to",
- * operationId="findPets",
- * @OA\Parameter(
- * name="tags",
- * in="query",
- * description="tags to filter by",
- * required=false,
- * @OA\Schema(
- * type="array",
- * @OA\Items(type="string"),
- * ),
- * style="form"
- * ),
- * @OA\Parameter(
- * name="limit",
- * in="query",
- * description="maximum number of results to return",
- * required=false,
- * @OA\Schema(
- * type="integer",
- * format="int32"
- * )
- * ),
- * @OA\Response(
- * response=200,
- * description="pet response",
- * @OA\JsonContent(
- * type="array",
- * @OA\Items(ref="#/components/schemas/Pet")
- * ),
- * @OA\XmlContent(
- * type="array",
- * @OA\Items(ref="#/components/schemas/Pet")
- * ),
- * @OA\MediaType(
- * mediaType="text/xml",
- * @OA\Schema(
- * type="array",
- * @OA\Items(ref="#/components/schemas/Pet")
- * ),
- * ),
- * @OA\MediaType(
- * mediaType="text/html",
- * @OA\Schema(
- * type="array",
- * @OA\Items(ref="#/components/schemas/Pet")
- * ),
- * ),
- * ),
- * @OA\Response(
- * response="default",
- * description="unexpected error",
- * @OA\JsonContent(ref="#/components/schemas/ErrorModel"),
- * @OA\XmlContent(ref="#/components/schemas/ErrorModel"),
- * @OA\MediaType(
- * mediaType="text/xml",
- * @OA\Schema(ref="#/components/schemas/ErrorModel")
- * ),
- * @OA\MediaType(
- * mediaType="text/html",
- * @OA\Schema(ref="#/components/schemas/ErrorModel")
- * )
- * )
- * )
- */
- public function findPets()
- {
- }
- /**
- * @OA\Get(
- * path="/pets/{id}",
- * description="Returns a user based on a single ID, if the user does not have access to the pet",
- * operationId="findPetById",
- * @OA\Parameter(
- * description="ID of pet to fetch",
- * in="path",
- * name="id",
- * required=true,
- * @OA\Schema(
- * type="integer",
- * format="int64",
- * )
- * ),
- * @OA\Response(
- * response=200,
- * description="pet response",
- * @OA\JsonContent(ref="#/components/schemas/Pet"),
- * @OA\MediaType(
- * mediaType="application/xml",
- * @OA\Schema(ref="#/components/schemas/Pet")
- * ),
- * @OA\MediaType(
- * mediaType="text/xml",
- * @OA\Schema(ref="#/components/schemas/Pet")
- * ),
- * @OA\MediaType(
- * mediaType="text/html",
- * @OA\Schema(ref="#/components/schemas/Pet")
- * ),
- * ),
- * @OA\Response(
- * response="default",
- * description="unexpected error",
- * @OA\JsonContent(ref="#/components/schemas/ErrorModel"),
- * @OA\MediaType(
- * mediaType="application/xml",
- * @OA\Schema(ref="#/components/schemas/ErrorModel")
- * ),
- * @OA\MediaType(
- * mediaType="text/xml",
- * @OA\Schema(ref="#/components/schemas/ErrorModel")
- * ),
- * @OA\MediaType(
- * mediaType="text/html",
- * @OA\Schema(ref="#/components/schemas/ErrorModel")
- * ),
- * )
- * )
- */
- public function findPetById()
- {
- }
- /**
- * @OA\Post(
- * path="/pets",
- * operationId="addPet",
- * description="Creates a new pet in the store. Duplicates are allowed",
- * @OA\RequestBody(
- * description="Pet to add to the store",
- * required=true,
- * @OA\MediaType(
- * mediaType="multipart/form-data",
- * @OA\Schema(ref="#/components/schemas/NewPet")
- * )
- * ),
- * @OA\Response(
- * response=200,
- * description="pet response",
- * @OA\JsonContent(ref="#/components/schemas/Pet")
- * ),
- * @OA\Response(
- * response="default",
- * description="unexpected error",
- * @OA\JsonContent(ref="#/components/schemas/ErrorModel")
- * )
- * )
- */
- public function addPet()
- {
- }
- /**
- * @OA\Delete(
- * path="/pets/{id}",
- * description="deletes a single pet based on the ID supplied",
- * operationId="deletePet",
- * @OA\Parameter(
- * description="ID of pet to delete",
- * in="path",
- * name="id",
- * required=true,
- * @OA\Schema(
- * format="int64",
- * type="integer"
- * )
- * ),
- * @OA\Response(
- * response=204,
- * description="pet deleted"
- * ),
- * @OA\Response(
- * response="default",
- * description="unexpected error",
- * @OA\Schema(ref="#/components/schemas/ErrorModel")
- * )
- * )
- */
- public function deletePet()
- {
- }
- }
|