/kitchendisplay/{storeid}:
  get:
    tags:
    - kitchenDisplay
    description: Return all the kitchen displays belong to given store
    operationId: listKitchenDisplays
    security:
    - bearerAuth: []
    parameters:
    - $ref#storeid: './parameters/storeid.yaml'
    responses:
      $ref#4xx: './responses/4xx.yaml'
      200:
        description: list of kitchen displays
        content:
          application/json:
            schema:
              type: array
              items:
                $ref: '#/components/schemas/KitchenDisplay'
  post:
    tags:
    - kitchenDisplay
    description: Update/Create kitchen display
    operationId: saveKitchenDisplay
    security:
    - bearerAuth: []
    parameters:
    - $ref#storeid: './parameters/storeid.yaml'
    requestBody:
      required: true
      content:
        application/json: 
          schema: 
            $ref: '#/components/schemas/KitchenDisplay'
    responses:
      $ref#4xx: './responses/4xx.yaml'
      $ref#upsert: './responses/20x-upsert.yaml'

/kitchendisplay/{storeid}/{id}:
  get:
    tags:
    - kitchenDisplay
    description: Return the kitchen display with given id
    operationId: loadKitchenDisplay
    security:
    - bearerAuth: []
    parameters:
    - $ref#storeid: './parameters/storeid.yaml'
    - $ref#id: './parameters/objectid.yaml'
    responses:
      $ref#4xx: './responses/4xx.yaml'
      200:
        description: kitchen display detail
        content:
          application/json:
            schema:
              type: object
              properties: 
                value:
                  $ref: '#/components/schemas/KitchenDisplay'
  delete:
    tags:
    - kitchenDisplay
    description: Delete a kitchen display with given id
    operationId: deleteKitchenDisplay
    security:
    - bearerAuth: []
    parameters:
    - $ref#storeid: './parameters/storeid.yaml'
    - $ref#id: './parameters/objectid.yaml'
    responses:
      $ref#4xx: './responses/4xx.yaml'
      $ref#204: './responses/204.yaml'

/app/store/{storeid}/kitchen-displays:
  get:
    tags:
    - kitchenDisplay
    description: Return all the kitchen displays belong to given store
    operationId: listDSKitchenDisplays
    parameters:
    - $ref#storeid: './parameters/storeid.yaml'
    responses:
      $ref#4xx: './responses/4xx.yaml'
      200:
        description: list of kitchen displays
        content:
          application/json:
            schema:
              type: array
              items:
                $ref: '#/components/schemas/KitchenDisplay'

/app/store/{storeid}/kitchen-display/{id}:
  get:
    tags:
    - kitchenDisplay
    description: Return the kitchen display with given id
    operationId: loadDSKitchenDisplay
    parameters:
    - $ref#storeid: './parameters/storeid.yaml'
    - $ref#id: './parameters/objectid.yaml'
    responses:
      $ref#4xx: './responses/4xx.yaml'
      200:
        description: kitchen display detail
        content:
          application/json:
            schema:
              type: object
              properties: 
                value:
                  $ref: '#/components/schemas/KitchenDisplay'