# Location query
get:
  tags:
    - Collection data queries
  summary: 'Query end point for queries of collection {collectionId} defined by a location id'
  description: Return data the for the location defined by locid
  operationId: GetCollectionDataForLocation
  parameters:
    - $ref: ../../parameters/collections/collectionId.yaml
    - $ref: ../../parameters/queries/locationId.yaml
    - $ref: https://raw.githubusercontent.com/opengeospatial/ogcapi-common/master/collections/openapi/parameters/datetime.yaml
    - $ref: ../../parameters/core/parameter-name.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 queries of collection {collectionId} defined by a location id'
  description: Return data the for the location defined by locid
  operationId: PostCollectionDataForLocation
  parameters:
    - $ref: ../../parameters/collections/collectionId.yaml
    - $ref: ../../parameters/queries/locationId.yaml
  requestBody:
    $ref: ../../request-bodies/location.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
