Swagger Petstore 1.0.0¶
License: MIT
Servers¶
Description | URL |
---|---|
http://petstore.swagger.io/v1 | http://petstore.swagger.io/v1 |
pets¶
GET /pets¶
List all pets
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
limit |
query | integer | No | How many items to return at one time (max 100) |
Response 200 OK
[
null
]
Schema of the response body
{
"type": "array",
"items": {
"$ref": "#/components/schemas/Pet"
}
}
Response headers
Name | Description | Schema |
---|---|---|
x-next |
A link to the next page of responses | string |
Other responses
Schema of the response body
{
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
}
}
}
POST /pets¶
Create a pet
Response 201 Created
Other responses
Schema of the response body
{
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
}
}
}
GET /pets/{petId}¶
Info for a specific pet
Input parameters
Parameter | In | Type | Default | Nullable | Description |
---|---|---|---|---|---|
petId |
path | string | No | The id of the pet to retrieve |
Response 200 OK
[
null
]
Schema of the response body
{
"type": "array",
"items": {
"$ref": "#/components/schemas/Pet"
}
}
Other responses
Schema of the response body
{
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
}
}
}
Schemas¶
Error¶
Type:
Pet¶
Type:
Pets¶
Type: Array<Pet>