| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148 |
- <?php
- /**
- *
- */
- class PetWithDocsController
- {
- /**
- * @SWG\Post(
- * path="/pets",
- * operationId="addPet",
- * description="Creates a new pet in the store. Duplicates are allowed",
- * produces={"application/json"},
- * @SWG\Parameter(
- * name="pet",
- * in="body",
- * description="Pet to add to the store",
- * required=true,
- * @SWG\Schema(ref="#/definitions/NewPet"),
- * ),
- * @SWG\Response(
- * response=200,
- * description="pet response",
- * @SWG\Schema(ref="#/definitions/Pet")
- * ),
- * @SWG\Response(
- * response="default",
- * description="unexpected error",
- * @SWG\Schema(ref="#/definitions/ErrorModel")
- * )
- * )
- */
- public function addPet()
- {
- }
- /**
- * @SWG\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",
- * @SWG\Parameter(
- * description="ID of pet to fetch",
- * format="int64",
- * in="path",
- * name="id",
- * required=true,
- * type="integer"
- * ),
- * produces={
- * "application/json",
- * "application/xml",
- * "text/html",
- * "text/xml"
- * },
- * @SWG\Response(
- * response=200,
- * description="pet response",
- * @SWG\Schema(ref="#/definitions/Pet")
- * ),
- * @SWG\Response(
- * response="default",
- * description="unexpected error",
- * @SWG\Schema(ref="#/definitions/ErrorModel")
- * )
- * )
- */
- public function findPetById()
- {
- }
- /**
- * @SWG\Get(
- * path="/pets",
- * description="Returns all pets from the system that the user has access to",
- * operationId="findPets",
- * produces={"application/json", "application/xml", "text/xml", "text/html"},
- * @SWG\Parameter(
- * name="tags",
- * in="query",
- * description="tags to filter by",
- * required=false,
- * type="array",
- * @SWG\Items(type="string"),
- * collectionFormat="csv"
- * ),
- * @SWG\Parameter(
- * name="limit",
- * in="query",
- * description="maximum number of results to return",
- * required=false,
- * type="integer",
- * format="int32"
- * ),
- * @SWG\Response(
- * response=200,
- * description="pet response",
- * @SWG\Schema(
- * type="array",
- * @SWG\Items(ref="#/definitions/Pet")
- * ),
- * ),
- * @SWG\Response(
- * response="default",
- * description="unexpected error",
- * @SWG\Schema(
- * ref="#/definitions/ErrorModel"
- * )
- * ),
- * @SWG\ExternalDocumentation(
- * description="find more info here",
- * url="https://swagger.io/about"
- * )
- * )
- */
- public function findPets()
- {
- }
- /**
- * @SWG\Delete(
- * path="/pets/{id}",
- * description="deletes a single pet based on the ID supplied",
- * operationId="deletePet",
- * @SWG\Parameter(
- * description="ID of pet to delete",
- * format="int64",
- * in="path",
- * name="id",
- * required=true,
- * type="integer"
- * ),
- * @SWG\Response(
- * response=204,
- * description="pet deleted"
- * ),
- * @SWG\Response(
- * response="default",
- * description="unexpected error",
- * @SWG\Schema(ref="#/definitions/ErrorModel")
- * )
- * )
- */
- public function deletePet()
- {
- }
- }
|