swagger.yaml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. swagger: "2.0"
  2. info:
  3. description: "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters."
  4. version: "1.0.0"
  5. title: "Swagger Petstore"
  6. termsOfService: "http://swagger.io/terms/"
  7. contact:
  8. email: "apiteam@swagger.io"
  9. license:
  10. name: "Apache 2.0"
  11. url: "http://www.apache.org/licenses/LICENSE-2.0.html"
  12. host: "petstore.swagger.io"
  13. basePath: "/v2"
  14. produces:
  15. - application/json
  16. - application/xml
  17. - text/csv
  18. consumes:
  19. - application/json
  20. - application/xml
  21. - text/csv
  22. schemes:
  23. - "https"
  24. - "http"
  25. paths:
  26. /pet:
  27. post:
  28. tags:
  29. - "pet"
  30. summary: "Add a new pet to the store"
  31. description: ""
  32. operationId: "addPet"
  33. parameters:
  34. - in: "body"
  35. name: "body"
  36. description: "Pet object that needs to be added to the store"
  37. required: true
  38. schema:
  39. $ref: "#/definitions/Pet"
  40. responses:
  41. 405:
  42. description: "Invalid input"
  43. /pet/findByStatus:
  44. $ref: "status.yaml#/paths/findByStatus"