# Corridor query
get:
  tags:
    - Collection data queries
  summary: 'Query end point for Corridor queries  of collection {collectionId} defined by a polygon'
  description: Return the data values for the Corridor defined by the query parameters
  operationId: GetDataForCorridor
  parameters:
    - $ref: ../../parameters/collections/collectionId.yaml
    - $ref: ../../parameters/core/trajectoryCoords.yaml
    - $ref: ../../parameters/core/z.yaml
    - $ref: https://raw.githubusercontent.com/opengeospatial/ogcapi-common/master/collections/openapi/parameters/datetime.yaml
    - $ref: ../../parameters/core/parameter-name.yaml
    - $ref: ../../parameters/core/corridor-width.yaml
    - $ref: ../../parameters/core/width-units.yaml
    - $ref: ../../parameters/core/corridor-height.yaml
    - $ref: ../../parameters/core/height-units.yaml
    - $ref: ../../parameters/core/resolution-x.yaml
    - $ref: ../../parameters/core/resolution-y.yaml
    - $ref: ../../parameters/core/crs.yaml
    - $ref: ../../parameters/core/f.yaml
  responses:
    200:
      $ref: ../../responses/queries/200.yaml
    202:
      $ref: ../../responses/queries/202.yaml
    308:
      $ref: ../../responses/queries/308.yaml
    400:
      $ref: ../../responses/queries/400.yaml
    404:
      $ref: ../../responses/queries/404.yaml
    413:
      $ref: ../../responses/queries/413.yaml
    default:
      $ref: ../../responses/core/exception.yaml
post:
  tags:
    - Collection data queries
  summary: 'Query end point for Corridor queries  of collection {collectionId} defined by a polygon'
  description: Return the data values for the Corridor defined by the query parameters
  operationId: PostDataForCorridor
  parameters:
    - $ref: ../../parameters/collections/collectionId.yaml
  requestBody:
    $ref: ../../request-bodies/corridor.yaml
  responses:
    200:
      $ref: ../../responses/queries/200.yaml
    202:
      $ref: ../../responses/queries/202.yaml
    308:
      $ref: ../../responses/queries/308.yaml
    400:
      $ref: ../../responses/queries/400.yaml
    404:
      $ref: ../../responses/queries/404.yaml
    413:
      $ref: ../../responses/queries/413.yaml
    default:
      $ref: ../../responses/core/exception.yaml
