Skip to content

Latest commit

 

History

History
96 lines (75 loc) · 4.17 KB

README.md

File metadata and controls

96 lines (75 loc) · 4.17 KB

STAC API - Distribution Extension Specification

Overview

A STAC API Landing Page (a Catalog) can return information about the Catalog and Collection child objects it contains using the link relation distribution to an endpoint /distrib.

The purpose of this endpoint is to present information about the distribution of the software serving the STAC API.

Link Relations

This conformance class also requires implementation of the link relations in the STAC API - Core conformance class.

The following Link relations must exist in the Landing Page (root).

rel href From Description
distribution /distrib STAC API - Distribution STAC API Software Distribution information of this catalog

The following Link relations must exist in the /distrib endpoint response.

rel href From Description
root / STAC Core The root URI
self /distrib STAC API - Distribution Self reference

Endpoints

This conformance class also requires for the endpoints in the STAC API - Core conformance class to be implemented.

Endpoint Returns Description
/distrib JSON STAC API Software Distribution information of this catalog

STAC APIs implementing the STAC API - Distribution conformance class must support HTTP GET operation at /distrib, with the return JSON document consisting of a root object distribution with the folowing fields:

Field Name Type Description
id string REQUIRED A unique identifier for this STAC API software distribution
name string A human-readable title for this STAC API software distribution
description string A description of this STAC API software distribution
version string The version of the STAC API software distribution
license string The license of the STAC API software distribution
links array REQUIRED An array of links to other resources

more fields can be added to the response object, such as an inline change log, or a list of contributors.

Example

Below is a minimal example, but captures the essence.

The /distrib endpoint response object should look as follows:

{
  "distribution": {
    "id": "super-stac-api-server-1.0",
    "name": "Super STAC API Server 1.0",
    "description": "A super STAC API server that implements the STAC API specification",
    "version": "1.0.0",
    "license": "Apache-2.0"
  },
  "links": [
    {
      "rel": "root",
      "type": "application/json",
      "href": "https://stac-api.example.com"
    },
    {
      "rel": "self",
      "type": "application/json",
      "href": "https://stac-api.example.com/distrib"
    }
  ]
}