example_custom_endpoint.yaml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # To include an endpoint that isn't a part of your Laravel app (or belongs to a vendor package),
  2. # you can define it in a custom.*.yaml file, like this one.
  3. # Each custom file should contain an array of endpoints. Here's an example:
  4. #- httpMethods:
  5. # - POST
  6. # uri: api/doSomething/{param}
  7. # metadata:
  8. # groupName: The group the endpoint belongs to. Can be a new group or an existing group.
  9. # groupDescription: A description for the group. You don't need to set this for every endpoint; once is enough.
  10. # title: Do something
  11. # description: 'This endpoint allows you to do something.'
  12. # authenticated: false
  13. # headers:
  14. # Content-Type: application/json
  15. # Accept: application/json
  16. # urlParameters:
  17. # param:
  18. # name: param
  19. # description: A URL param for no reason.
  20. # required: true
  21. # example: 2
  22. # type: integer
  23. # queryParameters:
  24. # speed:
  25. # name: speed
  26. # description: How fast the thing should be done. Can be `slow` or `fast`.
  27. # required: false
  28. # example: fast
  29. # type: string
  30. # bodyParameters:
  31. # something:
  32. # name: something
  33. # description: The things we should do.
  34. # required: true
  35. # example:
  36. # - string 1
  37. # - string 2
  38. # type: 'string[]'
  39. # responses:
  40. # - status: 200
  41. # description: 'When the thing was done smoothly.'
  42. # content: # Your response content can be an object, an array, a string or empty.
  43. # {
  44. # "hey": "ho ho ho"
  45. # }
  46. # responseFields:
  47. # hey:
  48. # name: hey
  49. # description: Who knows?
  50. # type: string # This is optional