-
Notifications
You must be signed in to change notification settings - Fork 0
/
openapi.yaml
137 lines (135 loc) · 3.77 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
openapi: 3.0.3
info:
title: STAC API - Distribution
version: 1.0.0
description: >-
This is an OpenAPI definition of the SpatioTemporal Asset Catalog API -
Distribution specification.
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: Distribution
description: All endpoints related to STAC API - Distribution
paths:
/distrib:
get:
tags:
- Distribution
summary: the Distribution page
description: >-
A body of metadata that describes the distribution of the software
serving the STAC API.
operationId: getDistribution
responses:
'200':
$ref: '#/components/responses/Distribution'
'500':
$ref: '#/components/responses/ServerError'
components:
schemas:
distribution:
type: object
required:
- links
- distribution
properties:
links:
$ref: '#/components/schemas/links'
distribution:
type: object
properties:
id:
type: string
version:
type: string
name:
type: string
description:
type: string
license:
type: string
link:
title: Link
type: object
required:
- href
- rel
properties:
href:
type: string
format: uri
description: The location of the resource
rel:
type: string
description: Relation type of the link
type:
type: string
description: The media type of the resource
title:
type: string
description: Title of the resource
method:
type: string
enum:
- GET
- POST
default: GET
description: Specifies the HTTP method that the resource expects
headers:
type: object
description: Object key values pairs they map to headers
example:
Accept: application/json
body:
type: object
description: >-
For POST requests, the resource can specify the HTTP body as a JSON
object.
merge:
type: boolean
default: false
description: |-
This is only valid when the server is responding to POST request.
If merge is true, the client is expected to merge the body value
into the current request body before following the link.
This avoids passing large post bodies back and forth when following
links, particularly for navigating pages through the `POST /search`
endpoint.
NOTE: To support form encoding it is expected that a client be able
to merge in the key value pairs specified as JSON
`{"next": "token"}` will become `&next=token`.
links:
type: array
items:
$ref: '#/components/schemas/link'
exception:
type: object
description: >-
Information about the exception: an error code plus an optional
description.
required:
- code
properties:
code:
type: string
description:
type: string
responses:
Distribution:
description: >-
A body of metadata that describes the distribution of the software
serving the STAC API.
content:
application/json:
schema:
$ref: '#/components/schemas/distribution'
ServerError:
description: A server error occurred.
content:
application/json:
schema:
$ref: '#/components/schemas/exception'