parameters:
  - $ref: ../parameters/controlStreamId.yaml
  
get:
  summary: List commands from a specific control stream
  description: |-
    List or search all commands received in a specific control stream.
  tags:
    - Commands
  parameters:
    - $ref: ../../../part1/openapi/parameters/idList.yaml
    - $ref: ../parameters/issueTime.yaml
    - $ref: ../parameters/executionTime.yaml
    - $ref: ../parameters/statusCodeList.yaml
    - $ref: ../parameters/senderList.yaml
    - $ref: ../../../part1/openapi/parameters/foiIdList.yaml
    - $ref: ../../../part1/openapi/parameters/controlPropIdList.yaml
    #- $ref: '#/components/parameters/select'
    - $ref: ../../../part1/openapi/parameters/limit.yaml
  responses:
    '200':
      $ref: ../responses/commandCollection.yaml
    '400':
      $ref: ../../../part1/openapi/responses/StandardResponses.yaml#/400
    '401':
      $ref: ../../../part1/openapi/responses/StandardResponses.yaml#/401
    '403':
      $ref: ../../../part1/openapi/responses/StandardResponses.yaml#/403
    '404':
      $ref: ../../../part1/openapi/responses/StandardResponses.yaml#/404
    '5XX':
      $ref: ../../../part1/openapi/responses/StandardResponses.yaml#/5XX

post:
  summary: Send a command
  description: |-
    Send a new command to an existing control stream.
  tags:
    - Commands
  requestBody:
    $ref: ../requests/command.yaml
  responses:
    '200':
      $ref: ../../../part1/openapi/responses/resourceLinks.yaml
    '201':
      $ref: ../../../part1/openapi/responses/StandardResponses.yaml#/201
    '400':
      $ref: ../../../part1/openapi/responses/StandardResponses.yaml#/400
    '401':
      $ref: ../../../part1/openapi/responses/StandardResponses.yaml#/401
    '403':
      $ref: ../../../part1/openapi/responses/StandardResponses.yaml#/403
    '404':
      $ref: ../../../part1/openapi/responses/StandardResponses.yaml#/404
    '5XX':
      $ref: ../../../part1/openapi/responses/StandardResponses.yaml#/5XX
  