Swagger Petstore
1.0.0

Single example of Petstore API, with easy endpoints about pets. and smart usage of tags to sort and group these endpoints.

This is the documentation for version 1.0.0 of the API. Last update on Mar 4, 2021.

This API is provided under license MIT.

Base URL
http://petstore.swagger.io/v1

Info for a specific pet

GET /pets/{petId}

Path parameters

  • petId string Required

    The id of the pet to retrieve

Responses

  • 200

    Expected response to a valid request

    Hide response attributes Show response attributes object
  • unexpected error

    Hide response attributes Show response attributes object
GET /pets/{petId}
curl \
 -X GET http://petstore.swagger.io/v1/pets/{petId}
Response examples (200)
{
  "id": 42,
  "name": "string",
  "tag": "string"
}
Response examples (default)
{
  "code": 42,
  "message": "string"
}