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

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