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 '{"type":"pet","animal":{"species":{"kind":"🐕","bones":true,"name":"Juna"}}}'
Request examples
{
  "type": "human",
  "country": "Argentina",
  "name": "Bob"
}
{
  "type": "pet",
  "animal": {
    "species": {
      "kind": "🐕",
      "bones": true,
      "name": "Juna"
    }
  }
}
Request examples
{
  "type": "pet",
  "animal": {
    "species": {
      "kind": "🐕",
      "bones": true,
      "name": "Juna"
    }
  }
}
{
  "type": "human",
  "country": "Argentina",
  "name": "Bob"
}
Response examples (200)
{
  "code": 42,
  "message": "string"
}
Response examples (200)
{
  "code": 42,
  "message": "string"
}
Response examples (default)
{
  "message": "string"
}
{
  "code": 42,
  "message": "foo"
}
Response examples (default)
{
  "message": "string"
}
{
  "code": 42,
  "message": "foo"
}