parameters:
  - $ref: ../../../part1/openapi/parameters/systemId.yaml

get:
  summary: List control streams of a specific system
  description: |-
    List or search control streams available from a parent system.
  tags:
    - Control Streams
  parameters:
    - $ref: ../../../part1/openapi/parameters/idList.yaml
    - $ref: ../../../part1/openapi/parameters/keyword.yaml
    - $ref: ../parameters/issueTime.yaml
    - $ref: ../parameters/executionTime.yaml
    - $ref: ../../../part1/openapi/parameters/keyword.yaml
    #- $ref: '#/components/parameters/select'
    - $ref: ../../../part1/openapi/parameters/limit.yaml
  responses:
    '200':
      $ref: ../responses/controlStreamCollection.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: Add a control stream
  description: |-
    Add a new control stream to an existing system.
  tags:
    - Control Streams
  requestBody:
    $ref: ../requests/controlStream.yaml
  responses:
    '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