swagger: "2.0"
info: <
  title: "Swagger Petstore"
  version: "1.0.0"
  description: "A sample API that uses a petstore as an example to demonstrate features in the swagger-2.0 specification"
  terms_of_service: "http://helloreverb.com/terms/"
  contact: <
    name: "Wordnik API Team"
    url: "http://madskristensen.net"
    email: "foo@example.com"
  >
  license: <
    name: "MIT"
    url: "http://github.com/gruntjs/grunt/blob/master/LICENSE-MIT"
  >
>
host: "petstore.swagger.wordnik.com"
base_path: "/api"
schemes: "http"
consumes: "application/json"
produces: "application/json"
paths: <
  path: <
    name: "/pets"
    value: <
      get: <
        description: "Returns all pets from the system that the user has access to\nNam sed condimentum est. Maecenas tempor sagittis sapien, nec rhoncus sem sagittis sit amet. Aenean at gravida augue, ac iaculis sem. Curabitur odio lorem, ornare eget elementum nec, cursus id lectus. Duis mi turpis, pulvinar ac eros ac, tincidunt varius justo. In hac habitasse platea dictumst. Integer at adipiscing ante, a sagittis ligula. Aenean pharetra tempor ante molestie imperdiet. Vivamus id aliquam diam. Cras quis velit non tortor eleifend sagittis. Praesent at enim pharetra urna volutpat venenatis eget eget mauris. In eleifend fermentum facilisis. Praesent enim enim, gravida ac sodales sed, placerat id erat. Suspendisse lacus dolor, consectetur non augue vel, vehicula interdum libero. Morbi euismod sagittis libero sed lacinia.\n\nSed tempus felis lobortis leo pulvinar rutrum. Nam mattis velit nisl, eu condimentum ligula luctus nec. Phasellus semper velit eget aliquet faucibus. In a mattis elit. Phasellus vel urna viverra, condimentum lorem id, rhoncus nibh. Ut pellentesque posuere elementum. Sed a varius odio. Morbi rhoncus ligula libero, vel eleifend nunc tristique vitae. Fusce et sem dui. Aenean nec scelerisque tortor. Fusce malesuada accumsan magna vel tempus. Quisque mollis felis eu dolor tristique, sit amet auctor felis gravida. Sed libero lorem, molestie sed nisl in, accumsan tempor nisi. Fusce sollicitudin massa ut lacinia mattis. Sed vel eleifend lorem. Pellentesque vitae felis pretium, pulvinar elit eu, euismod sapien.\n"
        operation_id: "findPets"
        parameters: <
          parameter: <
            non_body_parameter: <
              query_parameter_sub_schema: <
                in: "query"
                description: "tags to filter by"
                name: "tags"
                type: "array"
                items: <
                  type: "string"
                >
                collection_format: "csv"
              >
            >
          >
        >
        parameters: <
          parameter: <
            non_body_parameter: <
              query_parameter_sub_schema: <
                in: "query"
                description: "maximum number of results to return"
                name: "limit"
                type: "integer"
                format: "int32"
              >
            >
          >
        >
        responses: <
          response_code: <
            name: "200"
            value: <
              response: <
                description: "pet response"
                schema: <
                  schema: <
                    type: <
                      value: "array"
                    >
                    items: <
                      schema: <
                        required: "id"
                        required: "name"
                        type: <
                          value: "object"
                        >
                        properties: <
                          additional_properties: <
                            name: "id"
                            value: <
                              format: "int64"
                              type: <
                                value: "integer"
                              >
                            >
                          >
                          additional_properties: <
                            name: "name"
                            value: <
                              type: <
                                value: "string"
                              >
                            >
                          >
                          additional_properties: <
                            name: "tag"
                            value: <
                              type: <
                                value: "string"
                              >
                            >
                          >
                        >
                      >
                    >
                  >
                >
              >
            >
          >
          response_code: <
            name: "default"
            value: <
              response: <
                description: "unexpected error"
                schema: <
                  schema: <
                    required: "code"
                    required: "message"
                    type: <
                      value: "object"
                    >
                    properties: <
                      additional_properties: <
                        name: "code"
                        value: <
                          format: "int32"
                          type: <
                            value: "integer"
                          >
                        >
                      >
                      additional_properties: <
                        name: "message"
                        value: <
                          type: <
                            value: "string"
                          >
                        >
                      >
                    >
                  >
                >
              >
            >
          >
        >
      >
      post: <
        description: "Creates a new pet in the store.  Duplicates are allowed"
        operation_id: "addPet"
        parameters: <
          parameter: <
            body_parameter: <
              description: "Pet to add to the store"
              name: "pet"
              in: "body"
              required: true
              schema: <
                type: <
                  value: "object"
                >
                all_of: <
                  required: "id"
                  required: "name"
                  type: <
                    value: "object"
                  >
                  properties: <
                    additional_properties: <
                      name: "id"
                      value: <
                        format: "int64"
                        type: <
                          value: "integer"
                        >
                      >
                    >
                    additional_properties: <
                      name: "name"
                      value: <
                        type: <
                          value: "string"
                        >
                      >
                    >
                    additional_properties: <
                      name: "tag"
                      value: <
                        type: <
                          value: "string"
                        >
                      >
                    >
                  >
                >
                all_of: <
                  required: "name"
                  properties: <
                    additional_properties: <
                      name: "description"
                      value: <
                        format: "int64"
                        type: <
                          value: "integer"
                        >
                      >
                    >
                  >
                >
              >
            >
          >
        >
        responses: <
          response_code: <
            name: "200"
            value: <
              response: <
                description: "pet response"
                schema: <
                  schema: <
                    required: "id"
                    required: "name"
                    type: <
                      value: "object"
                    >
                    properties: <
                      additional_properties: <
                        name: "id"
                        value: <
                          format: "int64"
                          type: <
                            value: "integer"
                          >
                        >
                      >
                      additional_properties: <
                        name: "name"
                        value: <
                          type: <
                            value: "string"
                          >
                        >
                      >
                      additional_properties: <
                        name: "tag"
                        value: <
                          type: <
                            value: "string"
                          >
                        >
                      >
                    >
                  >
                >
              >
            >
          >
          response_code: <
            name: "default"
            value: <
              response: <
                description: "unexpected error"
                schema: <
                  schema: <
                    required: "code"
                    required: "message"
                    type: <
                      value: "object"
                    >
                    properties: <
                      additional_properties: <
                        name: "code"
                        value: <
                          format: "int32"
                          type: <
                            value: "integer"
                          >
                        >
                      >
                      additional_properties: <
                        name: "message"
                        value: <
                          type: <
                            value: "string"
                          >
                        >
                      >
                    >
                  >
                >
              >
            >
          >
        >
      >
    >
  >
  path: <
    name: "/pets/{id}"
    value: <
      get: <
        description: "Returns a user based on a single ID, if the user does not have access to the pet"
        operation_id: "find pet by id"
        parameters: <
          parameter: <
            non_body_parameter: <
              path_parameter_sub_schema: <
                required: true
                in: "path"
                description: "ID of pet to fetch"
                name: "id"
                type: "integer"
                format: "int64"
              >
            >
          >
        >
        responses: <
          response_code: <
            name: "200"
            value: <
              response: <
                description: "pet response"
                schema: <
                  schema: <
                    required: "id"
                    required: "name"
                    type: <
                      value: "object"
                    >
                    properties: <
                      additional_properties: <
                        name: "id"
                        value: <
                          format: "int64"
                          type: <
                            value: "integer"
                          >
                        >
                      >
                      additional_properties: <
                        name: "name"
                        value: <
                          type: <
                            value: "string"
                          >
                        >
                      >
                      additional_properties: <
                        name: "tag"
                        value: <
                          type: <
                            value: "string"
                          >
                        >
                      >
                    >
                  >
                >
              >
            >
          >
          response_code: <
            name: "default"
            value: <
              response: <
                description: "unexpected error"
                schema: <
                  schema: <
                    required: "code"
                    required: "message"
                    type: <
                      value: "object"
                    >
                    properties: <
                      additional_properties: <
                        name: "code"
                        value: <
                          format: "int32"
                          type: <
                            value: "integer"
                          >
                        >
                      >
                      additional_properties: <
                        name: "message"
                        value: <
                          type: <
                            value: "string"
                          >
                        >
                      >
                    >
                  >
                >
              >
            >
          >
        >
      >
      delete: <
        description: "deletes a single pet based on the ID supplied"
        operation_id: "deletePet"
        parameters: <
          parameter: <
            non_body_parameter: <
              path_parameter_sub_schema: <
                required: true
                in: "path"
                description: "ID of pet to delete"
                name: "id"
                type: "integer"
                format: "int64"
              >
            >
          >
        >
        responses: <
          response_code: <
            name: "204"
            value: <
              response: <
                description: "pet deleted"
              >
            >
          >
          response_code: <
            name: "default"
            value: <
              response: <
                description: "unexpected error"
                schema: <
                  schema: <
                    required: "code"
                    required: "message"
                    type: <
                      value: "object"
                    >
                    properties: <
                      additional_properties: <
                        name: "code"
                        value: <
                          format: "int32"
                          type: <
                            value: "integer"
                          >
                        >
                      >
                      additional_properties: <
                        name: "message"
                        value: <
                          type: <
                            value: "string"
                          >
                        >
                      >
                    >
                  >
                >
              >
            >
          >
        >
      >
    >
  >
>
