You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

42 lines
1022 B

  1. openapi: 3.0.0
  2. servers:
  3. - url: http://petstore.swagger.io/v2
  4. info:
  5. version: 1.0.0
  6. title: Swagger Petstore
  7. termsOfService: http://swagger.io/terms/
  8. contact:
  9. email: apiteam@swagger.io
  10. license:
  11. name: Apache 2.0
  12. url: http://www.apache.org/licenses/LICENSE-2.0.html
  13. paths:
  14. "/pet":
  15. post:
  16. tags:
  17. - pet
  18. summary: Add a new pet to the store
  19. description: ''
  20. operationId: addPet
  21. parameters: []
  22. responses:
  23. '405':
  24. description: Invalid input
  25. security:
  26. - petstore_auth:
  27. - write:pets
  28. - read:pets
  29. callbacks:
  30. myWebhook:
  31. '$request.body#/url':
  32. post:
  33. requestBody:
  34. description: Callback payload
  35. content:
  36. 'application/json':
  37. schema:
  38. type: string
  39. responses:
  40. '200':
  41. description: webhook successfully processed and no retries will be performed