Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New field in links (method, headers, body) #1253

Merged
merged 19 commits into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Added

- The `keywords` field known from Collections is available in common metadata. ([#1187](https://github.com/radiantearth/stac-spec/issues/1187))
- New fields `method`, `headers` and `body` in the Link Object. ([#1198](https://github.com/radiantearth/stac-spec/issues/1198))

### Changed

Expand Down
3 changes: 3 additions & 0 deletions catalog-spec/catalog-spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ with links.
| rel | string | **REQUIRED.** Relationship between the current document and the linked document. See chapter ["Relation types"](#relation-types) for more information. |
| type | string | [Media type](#media-types) of the referenced entity. |
| title | string | A human readable title to be used in rendered displays of the link. |
| method | string | The HTTP method required to be supported by the target resource. `GET` by default |
| headers | object | The HTTP headers required to be sent by the target resource. |
| body | object | The HTTP body required to be sent by the target resource. |

For a full discussion of the situations where relative and absolute links are recommended see the
['Use of links'](../best-practices.md#use-of-links) section of the STAC best practices.
Expand Down
3 changes: 3 additions & 0 deletions collection-spec/collection-spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,9 @@ This object describes a relationship with another entity. Data providers are adv
| rel | string | **REQUIRED.** Relationship between the current document and the linked document. See chapter "[Relation types](#relation-types)" for more information. |
| type | string | [Media type](../catalog-spec/catalog-spec.md#media-types) of the referenced entity. |
| title | string | A human readable title to be used in rendered displays of the link. |
| method | string | The HTTP method required to be supported by the target resource. `GET` by default |
| headers | object | The HTTP headers required to be sent by the target resource. |
| body | object | The HTTP body required to be sent by the target resource. |

For a full discussion of the situations where relative and absolute links are recommended see the
['Use of links'](../best-practices.md#use-of-links) section of the STAC best practices.
Expand Down
3 changes: 3 additions & 0 deletions item-spec/item-spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@ It is allowed to add additional fields such as a `title` and `type`.
| rel | string | **REQUIRED.** Relationship between the current document and the linked document. See chapter "Relation types" for more information. |
| type | string | [Media type](../catalog-spec/catalog-spec.md#media-types) of the referenced entity. |
| title | string | A human readable title to be used in rendered displays of the link. |
| method | string | The HTTP method required to be supported by the target resource. `GET` by default |
| headers | object | The HTTP headers required to be sent by the target resource. |
| body | object | The HTTP body required to be sent by the target resource. |

For a full discussion of the situations where relative and absolute links are recommended see the
['Use of links'](../best-practices.md#use-of-links) section of the STAC best practices.
Expand Down
12 changes: 12 additions & 0 deletions item-spec/json-schema/item.json
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,18 @@
"title": {
"title": "Link title",
"type": "string"
},
"method": {
"title": "Link method",
"type": "string"
emmanuelmathot marked this conversation as resolved.
Show resolved Hide resolved
},
"headers": {
"title": "Link headers",
"type": "object"
m-mohr marked this conversation as resolved.
Show resolved Hide resolved
},
"body": {
"title": "Link body",
"type": "object"
emmanuelmathot marked this conversation as resolved.
Show resolved Hide resolved
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,4 @@
]
]
}
}
}