Swagger to HTML

Swagger Petstore

Version: 1.0.0

List all pets

GET
/pets

Request

Sample Request

Path
Used in query
How many items to return at one time (max 100)
curl -v -X GET http://petstore.swagger.io/v1/pets

Response

Sample Response

Status Code: 200
An paged array of pets
Reference
This is a default response for the request.
unexpected error
Reference

Create a pet

POST
/pets

Request

Sample Request

curl -v -X POST http://petstore.swagger.io/v1/pets

Response

Sample Response

Status Code: 201
Null response
Reference
This is a default response for the request.
unexpected error
Reference

Info for a specific pet

GET
/pets/{petId}

Request

Sample Request

Path
Used in path
The id of the pet to retrieve
curl -v -X GET http://petstore.swagger.io/v1/pets/{petId}

Response

Sample Response

Status Code: 200
Expected response to a valid request
Reference
This is a default response for the request.
unexpected error
Reference