Note
This example was created using this macro
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
Response headers
| Name | Description | Schema |
|---|---|---|
x-next |
A link to the next page of responses | string |
Other responses
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.
POST /pets
Create a pet
Request body
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.
Response 201 Created
Other responses
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.
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
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.
Other responses
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.
Schemas
Error
| Name | Type |
|---|---|
code |
integer(int32) |
message |
string |
Pet
| Name | Type |
|---|---|
id |
integer(int64) |
name |
string |
tag |
string |
Pets
Type: Array<Pet>