{ "description": "Returns a pet based on ID", "summary": "Find pet by ID", "operationId": "getPetsById", "produces": [ "application/json", "text/html" ], "parameters": [ { "name": "petId", "in": "path", "description": "ID of pet that needs to be fetched", "required": true, "type": "integer", "format": "int64" }, { "name": "includeDetails", "in": "query", "description": "include details in response", "required": true, "type": "boolean" } ], "responses": { "200": { "description": "a pet to be returned", "schema": {"$ref": "Pet"} }, "default": { "description": "Unexpected error", "schema": {"$ref": "ErrorModel"} } } }