StacLink interface
Link model.
Ref: http://schemas.opengis.net/ogcapi/features/part1/1.0/openapi/schemas/link.yaml
Represents a link.
Properties
| body | For POST requests, the resource can specify the HTTP body as a JSON object. |
| headers | Object key-value pairs that map to headers. Example: { "Accept": "application/json" }. |
| href | The URL of the link. |
| hreflang | The language of the linked resource. |
| length | The length of the linked resource. |
| merge | Indicates whether the client is expected to merge the body value into the current request body before following the link. This is only valid when the server is responding to a POST request. Default: false. |
| method | Specifies the HTTP method that the resource expects. Default: GET. |
| rel | The relationship type of the link. |
| title | The title of the link. |
| type | The MIME type of the linked resource. |
Property Details
body
For POST requests, the resource can specify the HTTP body as a JSON object.
body?: Record<string, any>
Property Value
Record<string, any>
headers
Object key-value pairs that map to headers. Example: { "Accept": "application/json" }.
headers?: Record<string, string>
Property Value
Record<string, string>
href
The URL of the link.
href: string
Property Value
string
hreflang
The language of the linked resource.
hreflang?: string
Property Value
string
length
The length of the linked resource.
length?: number
Property Value
number
merge
Indicates whether the client is expected to merge the body value into the current request body before following the link. This is only valid when the server is responding to a POST request. Default: false.
merge?: boolean
Property Value
boolean
method
Specifies the HTTP method that the resource expects. Default: GET.
method?: string
Property Value
string
rel
The relationship type of the link.
rel?: string
Property Value
string
title
The title of the link.
title?: string
Property Value
string
type
The MIME type of the linked resource.
type?: string
Property Value
string