{
    "swagger": "2.0",
    "info": {
        "description": "This is a sample server Petstore server.\n\n[Learn about Swagger](http://swagger.wordnik.com) or join the IRC channel `#swagger` on irc.freenode.net.\n\nFor this sample, you can use the api key `special-key` to test the authorization filters\n",
        "version": "1.0.0",
        "title": "Swagger Petstore",
        "termsOfService": "http://helloreverb.com/terms/",
        "contact": {
            "name": "apiteam@wordnik.com"
        },
        "license": {
            "name": "Apache 2.0",
            "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
        }
    },
    "host": "petstore.swagger.wordnik.com",
    "basePath": "/v2",
    "schemes": [
        "http"
    ],
    "paths": {
        "/pets": {
          "get": {
            "tags": ["pet"],
            "summary": "list the pets",
            "operationId": "getPets",
            "parameters": [
              {
                "name": "limit",
                "in": "query",
                "description": "number of items to return in the result",
                "type": "integer",
                "format": "int32",
                "example": 20
              }
            ],
            "responses": {
              "default": {
                "description": "Generic Error"
              },
              "200": {
                "description": "Pets list",
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/definitions/Pet"
                  }
                }
              }
            }
          }
        }
    },
    "definitions": {
        "Parent": {
          "$ref": "#/definitions/Category"
        },
        "Category": {
            "properties": {
                "id": {
                    "type": "integer",
                    "format": "int64"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "Pet": {
            "required": [
                "name",
                "photoUrls"
            ],
            "properties": {
                "id": {
                    "type": "integer",
                    "format": "int64"
                },
                "category": {
                    "$ref": "#/definitions/Category"
                },
                "name": {
                    "type": "string",
                    "example": "doggie"
                },
                "photoUrls": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "tags": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/Tag"
                    }
                },
                "status": {
                    "type": "string",
                    "description": "pet status in the store"
                }
            }
        },
        "Tag": {
            "properties": {
                "id": {
                    "type": "integer",
                    "format": "int64"
                },
                "name": {
                    "type": "string"
                }
            }
        }
    }
}