-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathresponses.yaml
More file actions
282 lines (257 loc) · 11.2 KB
/
Copy pathresponses.yaml
File metadata and controls
282 lines (257 loc) · 11.2 KB
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
openapi: 3.0.3
components:
responses:
Collection:
headers:
ETag:
$ref: "./headers.yaml#/components/headers/ETag"
content:
application/json:
schema:
$ref: "./schemas.yaml#/components/schemas/collection"
description: >-
Information about the feature collection with id `collectionId`.
The response contains a link to the items in the collection
(path `/collections/{collectionId}/items`, link relation `items`)
as well as key information about the collection. This information
includes:
* A local identifier for the collection that is unique for the dataset
* A list of coordinate reference systems (CRS) in which geometries may be returned by the
server. The first CRS is the default coordinate reference system (the default is always
WGS 84 with axis order longitude/latitude)
* An optional title and description for the collection
* An optional extent that can be used to provide an indication of the spatial and temporal
extent of the collection - typically derived from the data
* An optional indicator about the type of the items in the collection (the default value,
if the indicator is not provided, is 'feature')
Collections:
content:
application/json:
schema:
$ref: "./schemas.yaml#/components/schemas/collections"
description: >-
The feature collections shared by this API.
The dataset is organized as one or more feature collections. This resource
provides information about and access to the collections.
The response contains the list of collections. For each collection, a link
to the items in the collection (path `/collections/{collectionId}/items`,
link relation `items`) as well as key information about the collection.
This information includes:
* A local identifier for the collection that is unique for the dataset
* A list of coordinate reference systems (CRS) in which geometries may be returned by the
server. The first CRS is the default coordinate reference system (the default is always
WGS 84 with axis order longitude/latitude)
* An optional title and description for the collection
* An optional extent that can be used to provide an indication of the spatial and temporal
extent of the collection - typically derived from the data
* An optional indicator about the type of the items in the collection (the default value,
if the indicator is not provided, is 'feature').
The `limit` parameter may be used to control the subset of the
selected collections that should be returned in the response, the page size.
Each page include links to support paging (link relation `next` and/or
`previous`).
CollectionAssets:
description: >-
The response is a document consisting of all assets of the collection.
content:
application/json:
schema:
$ref: "./schemas.yaml#/components/schemas/collectionAssets"
CollectionAsset:
description: >-
The response is a document consisting of one asset of the collection.
headers:
ETag:
$ref: "./headers.yaml#/components/headers/ETag"
content:
application/json:
schema:
$ref: "./schemas.yaml#/components/schemas/collectionAsset"
ConformanceDeclaration:
content:
application/json:
example:
conformsTo:
- http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/core
- http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/oas30
- http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/geojson
schema:
$ref: "./schemas.yaml#/components/schemas/confClasses"
description: >-
The URIs of all conformance classes supported by the server.
To support "generic" clients that want to access multiple
OGC API Features implementations - and not "just" a specific
API / server, the server declares the conformance
classes it implements and conforms to.
Feature:
headers:
ETag:
$ref: "./headers.yaml#/components/headers/ETag"
content:
application/json:
schema:
$ref: "./schemas.yaml#/components/schemas/item"
description: >-
Fetch the feature with id `featureId` in the feature collection
with id `collectionId`
Features:
content:
application/json:
schema:
$ref: "./schemas.yaml#/components/schemas/items"
description: >-
The response is a document consisting of features in the collection.
The features included in the response are determined by the server
based on the query parameters of the request. To support access to
larger collections without overloading the client, the API supports
paged access with links to the next page, if more features are selected
that the page size.
The `bbox` and `datetime` parameter can be used to select only a
subset of the features in the collection (the features that are in the
bounding box or time interval). The `bbox` parameter matches all features
in the collection that are not associated with a location, too. The
`datetime` parameter matches all features in the collection that are
not associated with a time stamp or interval, too.
The `limit` parameter may be used to control the subset of the
selected features that should be returned in the response, the page size.
Each page include links to support paging (link relation `next` and/or
`previous`).
NotModified:
# Currently the 304 Not Modified is handled by django and we cannot give a body. Anyway
# the standard specify the 304 without body
# content:
# application/json:
# schema:
# $ref: "./schemas.yaml#/components/schemas/exception"
# example:
# code: 304
# description: "Not modified"
description: The cached resource was not modified since last request.
InvalidParameter:
content:
application/json:
schema:
$ref: "./schemas.yaml#/components/schemas/exception"
example:
code: 400
description: "Invalid parameter"
description: A query parameter has an invalid value.
LandingPage:
content:
application/json:
example:
description: Catalog of Swiss Geodata Downloads
id: ch
links:
- href: http://data.geo.admin.ch/api/stac/v1/
rel: self
type: application/json
title: this document
- href: http://data.geo.admin.ch/api/stac/v1/static/api.html
rel: service-doc
type: text/html
title: the API documentation
- href: http://data.geo.admin.ch/api/stac/v1/conformance
rel: conformance
type: application/json
title: OGC API conformance classes implemented by this server
- href: http://data.geo.admin.ch/api/stac/v1/collections
rel: data
type: application/json
title: Information about the feature collections
- href: http://data.geo.admin.ch/api/stac/v1/search
rel: search
type: application/json
title: Search across feature collections
stac_version: 1.0.0
title: data.geo.admin.ch
type: Catalog
conformsTo:
- https://api.stacspec.org/v1.0.0/core
- http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/core
- http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/oas30
- http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/geojson
schema:
$ref: "./schemas.yaml#/components/schemas/landingPage"
description: >-
The landing page provides links to the API definition
(link relations `service-desc` and `service-doc`),
the Conformance declaration (path `/conformance`,
link relation `conformance`), and the Feature
Collections (path `/collections`, link relation
`data`).
NotFound:
description: The specified resource/URI was not found
content:
application/json:
schema:
$ref: "./schemas.yaml#/components/schemas/exception"
example:
code: 404
description: "Resource not found"
NotFoundS3:
description: The specified asset object was not found
content:
application/xml:
schema:
$ref: "./schemas.yaml#/components/schemas/exceptionS3"
example: |
<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>BJE6DBWM0M1D9BDC</RequestId>
<HostId>N9hTgbJmEuiMnvb+W9Y1Y+fhFoZh92NYG13Z3K19PBZOZ4hbn7F7i3yYpjJgM7bIFmDH2BnE81U=</HostId>
</Error>
BadRequest:
description: The request was malformed or semantically invalid
content:
application/json:
schema:
$ref: "./schemas.yaml#/components/schemas/exception"
example:
code: 400
description: "Invalid parameter"
PermissionDenied:
description: No Permission for this request
content:
application/json:
schema:
$ref: "./schemas.yaml#/components/schemas/exception"
example:
code: 403
description: "Permission denied"
PreconditionFailed:
description: Some condition specified by the request could not be met in the server
# Currently the 412 Precondition not met is handled by django and we cannot give a body
# content:
# application/json:
# schema:
# $ref: "./schemas.yaml#/components/schemas/exception"
# example:
# code: 412
# description: "Precondition not met"
PreconditionFailedS3:
description: Some condition specified by the request could not be met in the server
content:
application/xml:
schema:
$ref: "./schemas.yaml#/components/schemas/exceptionS3"
example: |
<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>PreconditionFailed</Code>
<Message>At least one of the pre-conditions you specified did not hold</Message>
<Condition>If-Match</Condition>
<RequestId>VWCQPYEAC5MMX985</RequestId>
<HostId>WmZ2NrcTLzim8v0z7S27BMmSRwdGVieLxDLsvBrojsyoPtkKEiFtEi7zLOWhpNUDa5LD7VtKPBE=</HostId>
</Error>
ServerError:
description: >-
The request was syntactically and semantically valid, but an error occurred while trying
to act upon it
content:
application/json:
schema:
$ref: "./schemas.yaml#/components/schemas/exception"
example:
code: 500
description: "Internal server error"