| 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: < |
| json_reference: < |
| _ref: "parameters.yaml#/tagsParam" |
| > |
| > |
| parameters: < |
| json_reference: < |
| _ref: "parameters.yaml#/limitsParam" |
| > |
| > |
| responses: < |
| response_code: < |
| name: "200" |
| value: < |
| response: < |
| description: "pet response" |
| schema: < |
| schema: < |
| type: < |
| value: "array" |
| > |
| items: < |
| schema: < |
| _ref: "Pet.yaml" |
| > |
| > |
| > |
| > |
| > |
| > |
| > |
| response_code: < |
| name: "default" |
| value: < |
| response: < |
| description: "unexpected error" |
| schema: < |
| schema: < |
| _ref: "../common/Error.yaml" |
| > |
| > |
| > |
| > |
| > |
| > |
| > |
| 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: < |
| _ref: "NewPet.yaml" |
| > |
| > |
| > |
| > |
| responses: < |
| response_code: < |
| name: "200" |
| value: < |
| response: < |
| description: "pet response" |
| schema: < |
| schema: < |
| _ref: "Pet.yaml" |
| > |
| > |
| > |
| > |
| > |
| response_code: < |
| name: "default" |
| value: < |
| response: < |
| description: "unexpected error" |
| schema: < |
| schema: < |
| _ref: "../common/Error.yaml" |
| > |
| > |
| > |
| > |
| > |
| > |
| > |
| > |
| > |
| 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: < |
| _ref: "Pet.yaml" |
| > |
| > |
| > |
| > |
| > |
| response_code: < |
| name: "default" |
| value: < |
| response: < |
| description: "unexpected error" |
| schema: < |
| schema: < |
| _ref: "../common/Error.yaml" |
| > |
| > |
| > |
| > |
| > |
| > |
| > |
| 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: < |
| _ref: "../common/Error.yaml" |
| > |
| > |
| > |
| > |
| > |
| > |
| > |
| > |
| > |
| > |