API Docs Help

Pet

Update an existing pet

PUT method/pet

Update an existing pet by Id

Request parameters

{ "id": 10, "name": "doggie", "category": { "id": 1, "name": "Dogs" }, "photoUrls": [ "example" ], "tags": [ { "id": 91, "name": "example" } ], "status": "available" }

Responses

{ "id": 10, "name": "doggie", "category": { "id": 1, "name": "Dogs" }, "photoUrls": [ "example" ], "tags": [ { "id": 91, "name": "example" } ], "status": "available" }

Add a new pet to the store

POST method/pet

Add a new pet to the store

Request parameters

{ "id": 10, "name": "doggie", "category": { "id": 1, "name": "Dogs" }, "photoUrls": [ "example" ], "tags": [ { "id": 91, "name": "example" } ], "status": "available" }

Responses

{ "id": 10, "name": "doggie", "category": { "id": 1, "name": "Dogs" }, "photoUrls": [ "example" ], "tags": [ { "id": 91, "name": "example" } ], "status": "available" }

Find pets by status

GET method/pet/findByStatus

Multiple status values can be provided with comma separated strings

Request parameters

Responses

[ { "id": 10, "name": "doggie", "category": { "id": 1, "name": "Dogs" }, "photoUrls": [ "example" ], "tags": [ { "id": 91, "name": "example" } ], "status": "available" } ]

Finds pets by tags

GET method/pet/findByTags

Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.

Request parameters

Responses

[ { "id": 10, "name": "doggie", "category": { "id": 1, "name": "Dogs" }, "photoUrls": [ "example" ], "tags": [ { "id": 91, "name": "example" } ], "status": "available" } ]

Find pet by ID

GET method/pet/{petId}

Returns a single pet

Request parameters

Responses

{ "id": 10, "name": "doggie", "category": { "id": 1, "name": "Dogs" }, "photoUrls": [ "example" ], "tags": [ { "id": 91, "name": "example" } ], "status": "available" }

Update a pet in the store with form data

POST method/pet/{petId}

Request parameters

Responses

Delete a pet

DELETE method/pet/{petId}

Request parameters

Responses

Upload an image

POST method/pet/{petId}/uploadImage

Request parameters

Responses

{ "code": 96, "type": "example", "message": "example" }
Last modified: 09 November 2024