Skip to content

Commit

Permalink
Use collection relation for links to collection
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaub committed Mar 7, 2023
1 parent f7c2fb1 commit 9c68256
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added extension field to all OpenAPI specifications `x-conformance-classes` indicating the
conformance classes they define.
- STAC API - Item Search now requires a `root` link relation in the response from `/search`
- Added a `collection` link from and Item to its Collection to conform with the STAC spec.

### Fixed

Expand Down
5 changes: 2 additions & 3 deletions ogcapi-features/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,11 @@ The following Link relations must exist in the Item object returned from the `/c
| **rel** | **href** | **Media Type** | **From** | **Description** |
| -------- | -------------------------------------------- | -------------------- | ------------------- | --------------------------------------------------- |
| `root` | `/` | application/json | STAC API - Features | The root URI |
| `collection` | `/collections/{collectionId}` | application/json | OAFeat | The containing Collection |
| `parent` | `/collections/{collectionId}` | application/json | OAFeat | Parent reference, usually the containing Collection |
| `self` | `/collections/{collectionId}/items/{itemId}` | application/geo+json | OAFeat | Self reference |

Note that the `parent` link for an Item should point to the containing Collection
(e.g., `/collections/{collectionId}`), rather than the API sub-path
of `/collections/{collectionId}/items/`.
The `parent` link for an item may point to a Collection or a Catalog. A `collection` link for an Item will always point to the containing Collection. Links to a Collection must point to the `/collections/{collectionId}` endpoint, rather than the API sub-path of `/collections/{collectionId}/items/`.

## Endpoints

Expand Down

0 comments on commit 9c68256

Please sign in to comment.