Skip to content

Commit 69e7966

Browse files
Merge pull request #45 from philvarner/fix-collection-description
Fix collection description
2 parents 824d491 + 46d6f7f commit 69e7966

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ For changes in 0.9.0 and prior, see the [STAC Spec Changelog](https://github.com
1515
### Changed
1616
- Context Extension OpenAPI spec was updated to remove the no longer used `next` attribute
1717
- Added root endpoint Link `search` must have `type` of `application/geo+json`
18+
- Corrected the description of endpoint `/collections` to say it returns an object per OAFeat, instead of an array of Collection
1819

1920
### Fixed
2021

api-spec.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,13 @@ The core OGC API - Features endpoints are shown below, with details provided in
8383
| ------------ | ------------- | ----------- |
8484
| / | JSON | Landing page, links to API capabilities |
8585
| /conformance | JSON | Info about standards to which the API conforms |
86-
| /collections | [Collection] | List of Collections contained in the catalog |
86+
| /collections | JSON | List of Collections contained in the catalog |
8787
| /collections/{collectionId} | Collection | Returns single Collection JSON |
8888
| /collections/{collectionId}/items | ItemCollection | GeoJSON FeatureCollection-conformant entity of Items in collection |
8989
| /collections/{collectionId}/items/{featureId} | Item | Returns single Item (GeoJSON Feature) |
9090

91+
The `/collections` endpoint returns an object with a field `collections` that is an array of Collection objects.
92+
9193
The `/collections/{collection_id}/items` endpoint accepts parameters for filtering the results (also called filters).
9294
Items in the collection should match all filters to be returned when querying. This implies a logical AND operation. If
9395
an OR operation is needed, it should be specified through an extension filter.

0 commit comments

Comments
 (0)