custom.0.yaml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. # See https://scribe.knuckles.wtf/laravel/documenting/custom-endpoints#extra-sorting-groups-in-custom-endpoint-files for more options
  5. #- httpMethods:
  6. # - POST
  7. # uri: api/doSomething/{param}
  8. # metadata:
  9. # groupName: The group the endpoint belongs to. Can be a new group or an existing group.
  10. # groupDescription: A description for the group. You don't need to set this for every endpoint; once is enough.
  11. # subgroup: You can add a subgroup, too.
  12. # title: Do something
  13. # description: 'This endpoint allows you to do something.'
  14. # authenticated: false
  15. # headers:
  16. # Content-Type: application/json
  17. # Accept: application/json
  18. # urlParameters:
  19. # param:
  20. # name: param
  21. # description: A URL param for no reason.
  22. # required: true
  23. # example: 2
  24. # type: integer
  25. # queryParameters:
  26. # speed:
  27. # name: speed
  28. # description: How fast the thing should be done. Can be `slow` or `fast`.
  29. # required: false
  30. # example: fast
  31. # type: string
  32. # bodyParameters:
  33. # something:
  34. # name: something
  35. # description: The things we should do.
  36. # required: true
  37. # example:
  38. # - string 1
  39. # - string 2
  40. # type: 'string[]'
  41. # responses:
  42. # - status: 200
  43. # description: 'When the thing was done smoothly.'
  44. # content: # Your response content can be an object, an array, a string or empty.
  45. # {
  46. # "hey": "ho ho ho"
  47. # }
  48. # responseFields:
  49. # hey:
  50. # name: hey
  51. # description: Who knows?
  52. # type: string # This is optional