collection:

description: Collection of available <<resourcePathName>>

get:
  securedBy: [ oauth_2_0: { scopes: [ "customer", "staff" ] } ]
  responses:
    200:
      body:
        application/json:
          example: <<exampleCollection>>

post:
  securedBy: [ oauth_2_0: { scopes: [ "customer", "staff" ] } ]
  body:
    application/json:
      schema: <<resourcePathName|!singularize>>
  responses:
    200: !include ../responses/200.yaml