Last updated 1 year ago
A first block:
Multiple status values can be provided with comma separated strings.
Status values that need to be considered for filter
available
pending
sold
curl -L \ --url '/api/v3/pet/findByStatus'
[ { "id": 10, "name": "doggie", "category": { "id": 1, "name": "Dogs" }, "photoUrls": [ "text" ], "tags": [ { "id": 1, "name": "text" } ], "status": "available" } ]
Delete a pet.
Pet id to delete
curl -L \ --request DELETE \ --url '/api/v3/pet/{petId}'
No Content
Add a new pet to the store.
10
doggie
pet status in the store
curl -L \ --request POST \ --url '/api/v3/pet' \ --header 'Content-Type: application/json' \ --data '{ "id": 10, "name": "doggie", "category": { "id": 1, "name": "Dogs" }, "photoUrls": [ "text" ], "tags": [ { "id": 1, "name": "text" } ], "status": "available" }'
{ "id": 10, "name": "doggie", "category": { "id": 1, "name": "Dogs" }, "photoUrls": [ "text" ], "tags": [ { "id": 1, "name": "text" } ], "status": "available" }
Update an existing pet by Id.
curl -L \ --request PUT \ --url '/api/v3/pet' \ --header 'Content-Type: application/json' \ --data '{ "id": 10, "name": "doggie", "category": { "id": 1, "name": "Dogs" }, "photoUrls": [ "text" ], "tags": [ { "id": 1, "name": "text" } ], "status": "available" }'