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

get:
  summary: List datastreams of a specific system
  description: |-
    List or search datastreams available from the parent system.
  tags:
    - Data Streams
  parameters:
    - $ref: ../parameters/phenomenonTime.yaml
    - $ref: ../parameters/resultTime.yaml
    - $ref: ../../../part1/openapi/parameters/keyword.yaml
    #- $ref: '#/components/parameters/select'
    - $ref: ../../../part1/openapi/parameters/limit.yaml
  responses:
    '200':
      $ref: ../responses/dataStreamCollection.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 datastream
  description: |-
    Add a new datastream to an existing system.
  tags:
    - Data Streams
  requestBody:
    $ref: ../requests/dataStream.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