forked from radiantearth/stac-api-spec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
openapi.yaml
87 lines (85 loc) · 3.08 KB
/
openapi.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
openapi: 3.0.3
info:
title: STAC API - Core
version: 1.0.0-rc.1
description: >-
This is an OpenAPI definition of the SpatioTemporal Asset Catalog API - Core
specification. Any service that implements this endpoint to allow discovery of
spatiotemporal assets can be considered a STAC API.
contact:
name: STAC Specification
url: 'http://stacspec.org'
license:
name: Apache License 2.0
url: 'http://www.apache.org/licenses/LICENSE-2.0'
tags:
- name: Core
description: essential characteristics of a STAC API
paths:
'/':
get:
tags:
- Core
summary: landing page
description: |-
Returns the root STAC Catalog or STAC Collection that is the entry point
for users to browse with STAC Browser or for search engines to crawl.
This can either return a single STAC Collection or more commonly a STAC
catalog.
The landing page provides links to the
API definition (link relations `service-desc` and `service-doc`)
and the STAC records such as collections/catalogs (link relation `child`)
or items (link relation `item`).
Extensions may add additional links with new relation types.
operationId: getLandingPage
responses:
'200':
$ref: '#/components/responses/LandingPage'
'500':
$ref: 'commons.yaml#/components/responses/Error'
components:
schemas:
landingPage:
allOf:
- $ref: 'commons.yaml#/components/schemas/catalog'
- $ref: 'commons.yaml#/components/schemas/conformanceClasses'
responses:
LandingPage:
description: |-
The landing page provides links to the API definition
(link relations `service-desc` and `service-doc`)
and the Feature Collection (path `/collections`, link relation
`data`).
content:
application/json:
schema:
$ref: '#/components/schemas/landingPage'
example:
type: Catalog
stac_version: '1.0.0'
id: sentinel
title: Copernicus Sentinel Imagery
description: Catalog of Copernicus Sentinel 1 and 2 imagery.
conformsTo:
- 'https://api.stacspec.org/v1.0.0-rc.1/core'
links:
- href: 'http://data.example.org/'
rel: self
type: application/json
title: this document
- href: 'http://data.example.org/api'
rel: service-desc
type: application/vnd.oai.openapi+json;version=3.0
title: the API definition
- href: 'http://data.example.org/api.html'
rel: service-doc
type: text/html
title: the API documentation
- href: 'http://data.example.org/catalogs/sentinel-1'
rel: child
type: application/json
title: Sentinel 1 Catalog
- href: 'http://data.example.org/catalogs/sentinel-2'
rel: child
type: application/json
title: Sentinel 2 Catalog