PetStore API
Demo API Example
Here are few links to the content items:
Everything about your Pets
{petId}
{petId}
{petId}
{petId}
/uploadImagePOST /pet HTTP/1.1
Content-Type: application/json
{
"id": 1,
"category": {
"id": 1,
"name": ""
},
"name": "doggie",
"photoUrls": [
""
],
"tags": [
{
"id": 1,
"name": ""
}
],
"status": "available"
}
HTTP/1.1 405 Method Not Allowed
Request body
Responses
Body
Invalid status value
Pet not found
Validation exception
PUT /pet HTTP/1.1
Content-Type: application/json
{
"id": 1,
"category": {
"id": 1,
"name": ""
},
"name": "doggie",
"photoUrls": [
""
],
"tags": [
{
"id": 1,
"name": ""
}
],
"status": "available"
}
Multiple status values can be provided with comma separated strings
Request parameters
Status values that need to be considered for filter
Responses
successful operation
Invalid status value
GET /pet/findByStatus?status=available HTTP/1.1
HTTP/1.1 200 OK
Content-Type: application/json
[
{
"id": 1,
"category": {
"id": 1,
"name": ""
},
"name": "doggie",
"photoUrls": [
""
],
"tags": [
{
"id": 1,
"name": ""
}
],
"status": "available"
}
]
Muliple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
Request parameters
Tags to filter by
Responses
successful operation
Invalid status value
GET /pet/findByTags?tags=pretty HTTP/1.1
HTTP/1.1 200 OK
Content-Type: application/json
[
{
"id": 1,
"category": {
"id": 1,
"name": ""
},
"name": "doggie",
"photoUrls": [
""
],
"tags": [
{
"id": 1,
"name": "pretty"
}
],
"status": "available"
}
]
{petId}
Returns a single pet
Path variables
ID of pet to return
Responses
successful operation
Invalid status value
Pet not found
{petId}
Path variables
ID of pet that needs to be updated
Request body
Updated name of the pet
Updated status of the pet
Responses
Invalid input
{petId}
/uploadImagePath variables
ID of pet to update
Request body
Additional data to pass to server
file to upload
Responses
successful operation
Access to Petstore orders
{orderId}
{orderId}
{orderId}
For valid response try integer IDs with value >= 1 and <= 10. Other values will generated exceptions
Path variables
ID of pet that needs to be fetched
Responses
successful operation
Invalid status value
Order not found
{orderId}
For valid response try integer IDs with positive integer value. Negative or non-integer values will generate API errors
Path variables
ID of the order that needs to be deleted
Responses
Invalid status value
Order not found
Operations about user
{username}
{username}
{username}
Request body
List of user object
Responses
successful operation
Request body
List of user object
Responses
successful operation
Request parameters
The user name for login
The password for login in clear text
Responses
successful operation
Headers
calls per hour allowed by the user
date in UTC when token expires
Body
Invalid status value
{username}
Path variables
The name that needs to be fetched. Use user1 for testing.
Responses
successful operation
Invalid status value
User not found
{username}
This can only be done by the logged in user.
Path variables
name that need to be updated
Request body
Updated user object
Responses
Invalid status value
User not found
Body
Order Status
User Status