Table of Contents
Pet
post /pets
delete /pets/{petId}
get /pets/findByStatus
get /pets/findByTags
get /pets/{petId}
put /pets
post /pets/{petId}
Store
User
Swagger Petstore
This is a sample Petstore server.
Learn about Swagger or join the IRC channel #swagger
on irc.freenode.net.
For this sample, you can use the api key special-key
to test the authorization filters
Access
- APIKey KeyParamName:api_key KeyInQuery:false KeyInHeader:true
- OAuth AuthorizationUrl:http://petstore.swagger.io/api/oauth/dialogTokenUrl:
Methods
[ Jump to Models ]Pet
post /pets
Consumes
This API call consumes the following media types via the Content-Type request header:application/json
application/xml
Request body
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.application/json
application/xml
Responses
405
Invalid inputdelete /pets/{petId}
Path parameters
Request headers
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.application/json
application/xml
Responses
400
Invalid pet valueget /pets/findByStatus
Query parameters
Return type
Example data
[ {
"photoUrls" : [ "aeiou" ],
"name" : "doggie",
"id" : 0,
"category" : {
"name" : "aeiou",
"id" : 6
},
"tags" : [ "" ],
"status" : "aeiou"
} ]
Example data
123456789
doggie
aeiou
aeiou
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.application/json
application/xml
Responses
200
successful operation400
Invalid status valueget /pets/findByTags
Query parameters
Return type
Example data
[ {
"photoUrls" : [ "aeiou" ],
"name" : "doggie",
"id" : 0,
"category" : {
"name" : "aeiou",
"id" : 6
},
"tags" : [ "" ],
"status" : "aeiou"
} ]
Example data
123456789
doggie
aeiou
aeiou
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.application/json
application/xml
Responses
200
successful operation400
Invalid tag valueget /pets/{petId}
Path parameters
Return type
Example data
{
"photoUrls" : [ "aeiou" ],
"name" : "doggie",
"id" : 0,
"category" : {
"name" : "aeiou",
"id" : 6
},
"tags" : [ "" ],
"status" : "aeiou"
}
Example data
123456789
doggie
aeiou
aeiou
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.application/json
application/xml
Responses
200
successful operation inline_response_200400
Invalid ID supplied404
Pet not foundput /pets
Consumes
This API call consumes the following media types via the Content-Type request header:application/json
application/xml
Request body
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.application/json
application/xml
Responses
400
Invalid ID supplied404
Pet not found405
Validation exceptionpost /pets/{petId}
Path parameters
Consumes
This API call consumes the following media types via the Content-Type request header:application/x-www-form-urlencoded
Form parameters
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.application/json
application/xml
Responses
405
Invalid inputStore
delete /stores/order/{orderId}
Path parameters
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.application/json
application/xml
Responses
400
Invalid ID supplied404
Order not foundget /stores/order/{orderId}
Path parameters
Return type
Example data
{
"petId" : 6,
"quantity" : 1,
"id" : 0,
"shipDate" : "2000-01-23T04:56:07.000+00:00",
"complete" : true,
"status" : "aeiou"
}
Example data
123456789
123456789
123
2000-01-23T04:56:07.000Z
aeiou
true
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.application/json
application/xml
Responses
200
successful operation inline_response_200_1400
Invalid ID supplied404
Order not foundpost /stores/order
Request body
Return type
Example data
{
"petId" : 6,
"quantity" : 1,
"id" : 0,
"shipDate" : "2000-01-23T04:56:07.000+00:00",
"complete" : true,
"status" : "aeiou"
}
Example data
123456789
123456789
123
2000-01-23T04:56:07.000Z
aeiou
true
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.application/json
application/xml
Responses
200
successful operation inline_response_200_1400
Invalid OrderUser
post /users
Request body
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.application/json
application/xml
Responses
default
successful operationpost /users/createWithArray
Request body
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.application/json
application/xml
Responses
default
successful operationpost /users/createWithList
Request body
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.application/json
application/xml
Responses
default
successful operationdelete /users/{username}
Path parameters
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.application/json
application/xml
Responses
400
Invalid username supplied404
User not foundget /users/{username}
Path parameters
Return type
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.application/json
application/xml
Responses
200
successful operation body_4400
Invalid username supplied404
User not foundget /users/login
Query parameters
Return type
Example data
"aeiou"
Example data
aeiou
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.application/json
application/xml
Responses
200
successful operation String400
Invalid username/password suppliedget /users/logout
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.application/json
application/xml
Responses
default
successful operationput /users/{username}
Path parameters
Request body
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.application/json
application/xml