Fetch a single collection asset
Fetch the collection asset with id assetId of the collection with id collectionId.
Path parameters
Local identifier of a collection
Local identifier of an asset.
Headers
The RFC7232 If-Match header field makes the GET request method conditional. It is composed of a comma separated list of ETags or value "*".
The server compares the client's ETags (sent with If-Match) with the ETag for its current version of the resource, and if both values don't match (that is, the resource has changed), the server sends back a 412 Precondition Failed status, without a body, which tells the client that the cached version of the response is not good to use anymore.
The RFC7232 If-None-Match header field makes the GET request method conditional. It is composed of a comma separated list of ETags or value "*".
The server compares the client's ETags (sent with If-None-Match) with the ETag for its current version of the resource, and if both values match (that is, the resource has not changed), the server sends back a 304 Not Modified status, without a body, which tells the client that the cached version of the response is still good to use (fresh).
Response
The response is a document consisting of one asset of the collection.
Example response
{
"id": "smr50-263-2016-2056-kgrs-2.5.tiff",
"type": "image/tiff; application=geotiff",
"title": "Thumbnail",
"href": "http://data.geo.admin.ch/ch.swisstopo.swissimage/collections/cs/items/CS3-20160503_132130_04/thumb.png\n",
"file:checksum": "90e402107a7f2588a85362b9beea2a12d4514d45",
"roles": [
"thumbnail"
],
"geoadmin:variant": "komb",
"proj:epsg": 2056,
"gsd": 2.5,
"created": "2018-02-12T23:20:50Z",
"updated": "2018-02-12T23:20:50Z",
"links": [
{
"href": "https://data.geo.admin.ch/api/stac/v1/collections/ch.swisstopo.pixelkarte-farbe-pk50.noscale/assets/smr50-263-2016-2056-kgrs-2.5.tiff",
"rel": "self"
},
{
"href": "https://data.geo.admin.ch/api/stac/v1/",
"rel": "root"
},
{
"href": "https://data.geo.admin.ch/api/stac/v1/collections/ch.swisstopo.pixelkarte-farbe-pk50.noscale/assets",
"rel": "parent"
},
{
"href": "https://data.geo.admin.ch/api/stac/v1/collections/ch.swisstopo.pixelkarte-farbe-pk50.noscale",
"rel": "collection"
}
]
}