The user to create.
id | string |
name | string |
string | |
age | integer |
{- "id": "12345",
- "name": "John Doe",
- "email": "john.doe@example.com",
- "age": 30
}
{- "id": "12345",
- "name": "John Doe",
- "email": "john.doe@example.com",
- "age": 30
}
userId required | string |
The user to update.
id | string |
name | string |
string | |
age | integer |
{- "id": "12345",
- "name": "John Doe",
- "email": "john.doe@example.com",
- "age": 30
}
{- "id": "12345",
- "name": "John Doe",
- "email": "john.doe@example.com",
- "age": 30
}
Update an existing pet by Id
Update an existent pet in the store
id | integer <int64> |
name required | string |
object (Category) | |
photoUrls required | Array of strings |
Array of objects (Tag) | |
status | string Enum: "available" "pending" "sold" pet status in the store |
{- "id": 10,
- "name": "doggie",
- "category": {
- "id": 1,
- "name": "Dogs"
}, - "photoUrls": [
- "string"
], - "tags": [
- {
- "id": 0,
- "name": "string"
}
], - "status": "available"
}
{- "id": 10,
- "name": "doggie",
- "category": {
- "id": 1,
- "name": "Dogs"
}, - "photoUrls": [
- "string"
], - "tags": [
- {
- "id": 0,
- "name": "string"
}
], - "status": "available"
}
Add a new pet to the store
Create a new pet in the store
id | integer <int64> |
name required | string |
object (Category) | |
photoUrls required | Array of strings |
Array of objects (Tag) | |
status | string Enum: "available" "pending" "sold" pet status in the store |
{- "id": 10,
- "name": "doggie",
- "category": {
- "id": 1,
- "name": "Dogs"
}, - "photoUrls": [
- "string"
], - "tags": [
- {
- "id": 0,
- "name": "string"
}
], - "status": "available"
}
{- "id": 10,
- "name": "doggie",
- "category": {
- "id": 1,
- "name": "Dogs"
}, - "photoUrls": [
- "string"
], - "tags": [
- {
- "id": 0,
- "name": "string"
}
], - "status": "available"
}
Multiple status values can be provided with comma separated strings
status | string Default: "available" Enum: "available" "pending" "sold" Status values that need to be considered for filter |
[- {
- "id": 10,
- "name": "doggie",
- "category": {
- "id": 1,
- "name": "Dogs"
}, - "photoUrls": [
- "string"
], - "tags": [
- {
- "id": 0,
- "name": "string"
}
], - "status": "available"
}
]
Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
tags | Array of strings Tags to filter by |
[- {
- "id": 10,
- "name": "doggie",
- "category": {
- "id": 1,
- "name": "Dogs"
}, - "photoUrls": [
- "string"
], - "tags": [
- {
- "id": 0,
- "name": "string"
}
], - "status": "available"
}
]
Returns a single pet
petId required | integer <int64> ID of pet to return |
{- "id": 10,
- "name": "doggie",
- "category": {
- "id": 1,
- "name": "Dogs"
}, - "photoUrls": [
- "string"
], - "tags": [
- {
- "id": 0,
- "name": "string"
}
], - "status": "available"
}
petId required | integer <int64> ID of pet to update |
additionalMetadata | string Additional Metadata |
{- "code": 0,
- "type": "string",
- "message": "string"
}
Place a new order in the store
id | integer <int64> |
petId | integer <int64> |
quantity | integer <int32> |
shipDate | string <date-time> |
status | string Enum: "placed" "approved" "delivered" Order Status |
complete | boolean |
{- "id": 10,
- "petId": 198772,
- "quantity": 7,
- "shipDate": "2019-08-24T14:15:22Z",
- "status": "approved",
- "complete": true
}
{- "id": 10,
- "petId": 198772,
- "quantity": 7,
- "shipDate": "2019-08-24T14:15:22Z",
- "status": "approved",
- "complete": true
}
For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions.
orderId required | integer <int64> ID of order that needs to be fetched |
{- "id": 10,
- "petId": 198772,
- "quantity": 7,
- "shipDate": "2019-08-24T14:15:22Z",
- "status": "approved",
- "complete": true
}