Download OpenAPI specification:Download
This is a sample server Petstore server. You can find out more about Swagger at http://swagger.io or on irc.freenode.net, #swagger. For this sample, you can use the api key special-key
to test the authorization filters.
write:pets
read:pets
) Pet object that needs to be added to the store
id | integer <int64> |
object (Category) | |
name required | string |
photoUrls required | Array of strings |
Array of objects (Tag) | |
status | string Enum: "available" "pending" "sold" pet status in the store |
{- "id": 0,
- "category": {
- "id": 0,
- "name": "string"
}, - "name": "doggie",
- "photoUrls": [
- "string"
], - "tags": [
- {
- "id": 0,
- "name": "string"
}
], - "status": "available"
}
write:pets
read:pets
) Pet object that needs to be added to the store
id | integer <int64> |
object (Category) | |
name required | string |
photoUrls required | Array of strings |
Array of objects (Tag) | |
status | string Enum: "available" "pending" "sold" pet status in the store |
{- "id": 0,
- "category": {
- "id": 0,
- "name": "string"
}, - "name": "doggie",
- "photoUrls": [
- "string"
], - "tags": [
- {
- "id": 0,
- "name": "string"
}
], - "status": "available"
}
Multiple status values can be provided with comma separated strings
write:pets
read:pets
) status required | Array of strings Items Enum: "available" "pending" "sold" Status values that need to be considered for filter |
Muliple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
write:pets
read:pets
) tags required | Array of strings Tags to filter by |
write:pets
read:pets
) petId required | integer <int64> ID of pet that needs to be updated |
name | string Updated name of the pet |
status | string Updated status of the pet |
write:pets
read:pets
) petId required | integer <int64> Pet id to delete |
api_key | string |
write:pets
read:pets
) petId required | integer <int64> ID of pet to update |
additionalMetadata | string Additional data to pass to server |
file | string <binary> file to upload |
{- "code": 0,
- "type": "string",
- "message": "string"
}
order placed for purchasing the pet
id | integer <int64> |
petId | integer <int64> |
quantity | integer <int32> |
shipDate | string <date-time> |
status | string Enum: "placed" "approved" "delivered" Order Status |
complete | boolean Default: false |
{- "id": 0,
- "petId": 0,
- "quantity": 0,
- "shipDate": "2019-08-24T14:15:22Z",
- "status": "placed",
- "complete": false
}
For valid response try integer IDs with value >= 1 and <= 10. Other values will generated exceptions
orderId required | integer <int64> [ 1 .. 10 ] ID of pet that needs to be fetched |
This can only be done by the logged in user.
Created user object
id | integer <int64> |
username | string |
firstName | string |
lastName | string |
string | |
password | string |
phone | string |
userStatus | integer <int32> User Status |
{- "id": 0,
- "username": "string",
- "firstName": "string",
- "lastName": "string",
- "email": "string",
- "password": "string",
- "phone": "string",
- "userStatus": 0
}
List of user object
id | integer <int64> |
username | string |
firstName | string |
lastName | string |
string | |
password | string |
phone | string |
userStatus | integer <int32> User Status |
[- {
- "id": 0,
- "username": "string",
- "firstName": "string",
- "lastName": "string",
- "email": "string",
- "password": "string",
- "phone": "string",
- "userStatus": 0
}
]
List of user object
id | integer <int64> |
username | string |
firstName | string |
lastName | string |
string | |
password | string |
phone | string |
userStatus | integer <int32> User Status |
[- {
- "id": 0,
- "username": "string",
- "firstName": "string",
- "lastName": "string",
- "email": "string",
- "password": "string",
- "phone": "string",
- "userStatus": 0
}
]
This can only be done by the logged in user.
username required | string name that need to be updated |
Updated user object
id | integer <int64> |
username | string |
firstName | string |
lastName | string |
string | |
password | string |
phone | string |
userStatus | integer <int32> User Status |
{- "id": 0,
- "username": "string",
- "firstName": "string",
- "lastName": "string",
- "email": "string",
- "password": "string",
- "phone": "string",
- "userStatus": 0
}