{
   "apiVersion":"0.2",
   "swaggerVersion":"1.0",
   "basePath":"http://petstore.swagger.wordnik.com/api",
   "resourcePath":"/pet",
   "apis":[
      {
         "path":"/pet.{format}/{petId}",
         "description":"Operations about pets",
         "operations":[
            {
               "parameters":[
                  {
                     "name":"petId",
                     "description":"ID of pet that needs to be fetched",
                     "dataType":"string",
                     "allowableValues":{
                        "valueType":"RANGE",
                        "max":10.0,
                        "min":0.0,
                        "valueType":"RANGE"
                     },
                     "required":true,
                     "allowMultiple":false,
                     "paramType":"path"
                  }
               ],
               "httpMethod":"GET",
               "notes":"Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions",
               "responseTypeInternal":"com.wordnik.swagger.sample.model.Pet",
               "errorResponses":[
                  {
                     "reason":"Invalid ID supplied",
                     "code":400
                  },
                  {
                     "reason":"Pet not found",
                     "code":404
                  }
               ],
               "nickname":"getPetById",
               "responseClass":"pet",
               "summary":"Find pet by ID"
            }
         ]
      },
      {
         "path":"/pet.{format}",
         "description":"Operations about pets",
         "operations":[
            {
               "parameters":[
                  {
                     "description":"Pet object that needs to be added to the store",
                     "dataType":"pet",
                     "required":true,
                     "valueTypeInternal":"com.wordnik.swagger.sample.model.Pet",
                     "allowMultiple":false,
                     "paramType":"body"
                  }
               ],
               "httpMethod":"POST",
               "responseTypeInternal":"ok",
               "errorResponses":[
                  {
                     "reason":"Invalid input",
                     "code":405
                  }
               ],
               "nickname":"addPet",
               "responseClass":"ok",
               "summary":"Add a new pet to the store"
            },
            {
               "parameters":[
                  {
                     "description":"Pet object that needs to be updated in the store",
                     "dataType":"pet",
                     "required":true,
                     "valueTypeInternal":"com.wordnik.swagger.sample.model.Pet",
                     "allowMultiple":false,
                     "paramType":"body"
                  }
               ],
               "httpMethod":"PUT",
               "responseTypeInternal":"ok",
               "errorResponses":[
                  {
                     "reason":"Invalid ID supplied",
                     "code":400
                  },
                  {
                     "reason":"Pet not found",
                     "code":404
                  },
                  {
                     "reason":"Validation exception",
                     "code":405
                  }
               ],
               "nickname":"updatePet",
               "responseClass":"ok",
               "summary":"Update an existing pet"
            }
         ]
      }
   ],
   "models":{
      "Category":{
         "properties":{
            "id":{
               "type":"long"
            },
            "name":{
               "type":"string"
            }
         },
         "id":"category"
      },
      "Pet":{
         "properties":{
            "tags":{
               "type":"array",
               "items":{
                  "$ref":"tag"
               }
            },
            "id":{
               "type":"long"
            },
            "category":{
               "type":"category"
            },
            "status":{
               "type":"string",
               "description":"pet status in the store",
               "allowableValues":{
                  "valueType":"LIST",
                  "values":[
                     "available",
                     "pending",
                     "sold"
                  ],
                  "valueType":"LIST"
               }
            },
            "name":{
               "type":"string"
            },
            "photoUrls":{
               "type":"array",
               "items":{
                  "type":"string"
               }
            }
         },
         "id":"pet"
      },
      "Tag":{
         "properties":{
            "id":{
               "type":"long"
            },
            "name":{
               "type":"string"
            }
         },
         "id":"tag"
      }
   }
}
