A first block:
Add a new pet to the store.
10
doggie
pet status in the store
available
pending
sold
POST /api/v3/pet HTTP/1.1 Host: Content-Type: application/json Accept: */* Content-Length: 133 { "id": 10, "name": "doggie", "category": { "id": 1, "name": "Dogs" }, "photoUrls": [ "text" ], "tags": [ { "id": 1, "name": "text" } ], "status": "available" }
Successful operation
{ "id": 10, "name": "doggie", "category": { "id": 1, "name": "Dogs" }, "photoUrls": [ "text" ], "tags": [ { "id": 1, "name": "text" } ], "status": "available" }
Update an existing pet by Id.
PUT /api/v3/pet HTTP/1.1 Host: Content-Type: application/json Accept: */* Content-Length: 133 { "id": 10, "name": "doggie", "category": { "id": 1, "name": "Dogs" }, "photoUrls": [ "text" ], "tags": [ { "id": 1, "name": "text" } ], "status": "available" }
Multiple status values can be provided with comma separated strings.
Status values that need to be considered for filter
GET /api/v3/pet/findByStatus HTTP/1.1 Host: Accept: */*
successful operation
[ { "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
DELETE /api/v3/pet/{petId} HTTP/1.1 Host: Accept: */*
Pet deleted
No content
Last updated 1 year ago