Swagger Petstore
1.0.0

This is the documentation for version 1.0.0 of the API. Last update on Nov 23, 2022.

This API is provided under license MIT.

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

Create a pet

POST /pets

This polymorphic endpoint is here to populate.

Body object Required

This description is about requestBody

Any of:

Responses

POST /pets
curl \
 -X POST http://petstore.swagger.io/v1/pets \
 -H "Content-Type: application/json" \
 -d '{"animal":{"species":{"bones":true,"name":"Juna"},"omega":"This is the last property for every Animal object (Dog, Cat, ...)"}}'
Request examples
{
  "animal": {
    "species": {
      "bones": true,
      "name": "Juna"
    },
    "omega": "This is the last property for every Animal object (Dog, Cat, ...)"
  }
}
{
  "country": "Argentina",
  "name": "Bob"
}
Response examples (default)
{
  "message": "string"
}
{
  "code": 42,
  "message": "foo"
}
Response example (200)
{
  "code": 42,
  "message": "string"
}