GET /api/pets
summary: Everything about your Pets.
doc: List pets ordered by name.
consumes: [application/json]
produces: [application/json]
params:
start:
paramType: QUERY
type: int
value: 0
doc: Start offset, useful for paging. Default is 0
.
max:
paramType: QUERY
type: int
value: 200
doc: Max page size, useful for paging. Default is 200
.
response:
type: java.util.List
doc: Pets ordered by name.
GET /api/pets/:id
summary: Everything about your Pets.
doc: Find pet by ID
consumes: [application/json]
produces: [application/json]
params:
id:
paramType: PATH
type: int
doc: Pet ID.
response:
type: apps.model.Pet
doc: Returns 200
with a single pet or 404
POST /api/pets
summary: Everything about your Pets.
doc: Add a new pet to the store.
consumes: [application/json]
produces: [application/json]
params:
:
paramType: BODY
type: apps.model.Pet
doc: Pet object that needs to be added to the store.
response:
type: apps.model.Pet
doc: Returns a saved pet.
PUT /api/pets
summary: Everything about your Pets.
doc: Update an existing pet.
consumes: [application/json]
produces: [application/json]
params:
:
paramType: BODY
type: apps.model.Pet
doc: Pet object that needs to be updated.
response:
type: apps.model.Pet
doc: Returns a saved pet.
DELETE /api/pets/:id
summary: Everything about your Pets.
doc: Deletes a pet by ID.
consumes: [application/json]
produces: [application/json]
params:
id:
paramType: PATH
type: int
doc: Pet ID.
response:
type: void
doc: A 204