forked from opengeospatial/ogcapi-records
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathogcapi-records-1-example-ref-buildingblocks-bundle.yaml
More file actions
226 lines (221 loc) · 9.28 KB
/
ogcapi-records-1-example-ref-buildingblocks-bundle.yaml
File metadata and controls
226 lines (221 loc) · 9.28 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
openapi: 3.0.3
info:
title: "OGC API - Records - Part 1: Core"
version: '1.0.0'
description: |-
This is a sample OpenAPI definition that conforms to the conformance
classes "Core", "GeoJSON", "HTML" and "OpenAPI 3.0" of the draft
standard "OGC API - Records - Part 1: Core".
This example is a generic OGC API - Records definition that uses path
parameters to describe all record collections and all records.
The generic OpenAPI definition does not provide any details on the
collections or the record content. This information is only available
from accessing the record collection resources.
There is [another example](ogcapi-records-1-example2.yaml)
that specifies each collection explicitly.
contact:
name: CubeWerx Inc.
email: pvretano@cubewerx.com
url: 'https://www.cubewerx.com'
license:
name: CC-BY 4.0 license
url: 'https://creativecommons.org/licenses/by/4.0/'
servers:
- url: 'https://example.org/data'
description: Production server
- url: 'https://example.org/data-dev'
description: Development server
tags:
- name: Capabilities
description: |-
essential characteristics of this API
- name: Conformance
description: |-
list of conformance classes implemented by this API
- name: Collections
description: |-
list of catalogs offered by this API
- name: Collection
description: |-
description of a catalog offered by this API
- name: Sortables
description: |-
list of record properties by which responses can be sorted
- name: Records
description: |-
access to records
- name: Record
description: |-
access to a single record
paths:
'/':
get:
tags:
- Capabilities
summary: landing page
description: |-
The landing page provides links to the API definition, the conformance
statements and to the record collections in this dataset.
operationId: getLandingPage
responses:
'200':
$ref: 'ogcapi-records-1-building-blocks.yaml#/components/responses/LandingPage'
'4XX':
$ref: 'ogcapi-records-1-building-blocks.yaml#/components/responses/BadRequest'
'406':
$ref: 'ogcapi-records-1-building-blocks.yaml#/components/responses/NotAcceptable'
'5XX':
$ref: 'ogcapi-records-1-building-blocks.yaml#/components/responses/ServerError'
'/conformance':
get:
tags:
- Conformance
summary: information about specifications that this API conforms to
description: |-
A list of all conformance classes specified in a standard that the
server conforms to.
operationId: getConformanceDeclaration
responses:
'200':
$ref: 'ogcapi-records-1-building-blocks.yaml#/components/responses/ConformanceDeclaration'
'4XX':
$ref: 'ogcapi-records-1-building-blocks.yaml#/components/responses/BadRequest'
'406':
$ref: 'ogcapi-records-1-building-blocks.yaml#/components/responses/NotAcceptable'
'5XX':
$ref: 'ogcapi-records-1-building-blocks.yaml#/components/responses/ServerError'
'/collections':
get:
tags:
- Collections
summary: the record collections
description: |-
Fetch list of catalogs offered by this API
operationId: getCollections
responses:
'200':
$ref: 'ogcapi-records-1-building-blocks.yaml#/components/responses/Catalogs'
'4XX':
$ref: 'ogcapi-records-1-building-blocks.yaml#/components/responses/BadRequest'
'406':
$ref: 'ogcapi-records-1-building-blocks.yaml#/components/responses/NotAcceptable'
'5XX':
$ref: 'ogcapi-records-1-building-blocks.yaml#/components/responses/ServerError'
'/collections/{catalogId}':
get:
tags:
- Collection
summary: |-
describe the record collection with id `catalogId`
description: |-
Fetch a detailed description of a catalog or collection of records
with id `catalogId`.
operationId: describeCollection
parameters:
- $ref: 'ogcapi-records-1-building-blocks.yaml#/components/parameters/catalogId'
- $ref: 'ogcapi-records-1-building-blocks.yaml#/components/parameters/bbox'
- $ref: 'ogcapi-records-1-building-blocks.yaml#/components/parameters/datetime'
- $ref: 'ogcapi-records-1-building-blocks.yaml#/components/parameters/limit'
- $ref: 'ogcapi-records-1-building-blocks.yaml#/components/parameters/q'
- $ref: 'ogcapi-records-1-building-blocks.yaml#/components/parameters/type'
- $ref: 'ogcapi-records-1-building-blocks.yaml#/components/parameters/externalIds'
- $ref: 'ogcapi-records-1-building-blocks.yaml#/components/parameters/ids'
- $ref: 'ogcapi-records-1-building-blocks.yaml#/components/parameters/sortby'
responses:
'200':
$ref: 'ogcapi-records-1-building-blocks.yaml#/components/responses/Catalog'
'4XX':
$ref: 'ogcapi-records-1-building-blocks.yaml#/components/responses/BadRequest'
'404':
$ref: 'ogcapi-records-1-building-blocks.yaml#/components/responses/NotFound'
'406':
$ref: 'ogcapi-records-1-building-blocks.yaml#/components/responses/NotAcceptable'
'5XX':
$ref: 'ogcapi-records-1-building-blocks.yaml#/components/responses/ServerError'
'/collections/{catalogId}/sortables':
get:
tags:
- Sortables
summary: |-
get the list of sortable properties
description: |-
Fetch the list of properties which can be used to sort the getRecords
response.
operationId: getSortables
parameters:
- $ref: 'ogcapi-records-1-building-blocks.yaml#/components/parameters/catalogId'
responses:
'200':
$ref: 'ogcapi-records-1-building-blocks.yaml#/components/responses/Sortables'
'4XX':
$ref: 'ogcapi-records-1-building-blocks.yaml#/components/responses/BadRequest'
'404':
$ref: 'ogcapi-records-1-building-blocks.yaml#/components/responses/NotFound'
'406':
$ref: 'ogcapi-records-1-building-blocks.yaml#/components/responses/NotAcceptable'
'5XX':
$ref: 'ogcapi-records-1-building-blocks.yaml#/components/responses/ServerError'
'/collections/{catalogId}/items':
get:
tags:
- Records
summary: fetch records
description: |-
Fetch records from the record collection with id `catalogId`.
Every record in a dataset belongs to a collection. A dataset may
consist of multiple record collections. A record collection is often a
collection of records of a similar type, based on a common schema.
Use content negotiation to request HTML or GeoJSON.
operationId: getRecords
parameters:
- $ref: 'ogcapi-records-1-building-blocks.yaml#/components/parameters/catalogId'
- $ref: 'ogcapi-records-1-building-blocks.yaml#/components/parameters/bbox'
- $ref: 'ogcapi-records-1-building-blocks.yaml#/components/parameters/datetime'
- $ref: 'ogcapi-records-1-building-blocks.yaml#/components/parameters/limit'
- $ref: 'ogcapi-records-1-building-blocks.yaml#/components/parameters/q'
- $ref: 'ogcapi-records-1-building-blocks.yaml#/components/parameters/type'
- $ref: 'ogcapi-records-1-building-blocks.yaml#/components/parameters/externalIds'
- $ref: 'ogcapi-records-1-building-blocks.yaml#/components/parameters/ids'
- $ref: 'ogcapi-records-1-building-blocks.yaml#/components/parameters/sortby'
responses:
'200':
$ref: 'ogcapi-records-1-building-blocks.yaml#/components/responses/Records'
'4XX':
$ref: 'ogcapi-records-1-building-blocks.yaml#/components/responses/BadRequest'
'404':
$ref: 'ogcapi-records-1-building-blocks.yaml#/components/responses/NotFound'
'406':
$ref: 'ogcapi-records-1-building-blocks.yaml#/components/responses/NotAcceptable'
'5XX':
$ref: 'ogcapi-records-1-building-blocks.yaml#/components/responses/ServerError'
'/collections/{catalogId}/items/{recordId}':
get:
tags:
- Record
summary: fetch a single record
description: |-
Fetch the record with id `recordId` from the record collection
with id `catalogId`.
Use content negotiation to request HTML or GeoJSON.
operationId: getRecord
parameters:
- $ref: 'ogcapi-records-1-building-blocks.yaml#/components/parameters/catalogId'
- $ref: 'ogcapi-records-1-building-blocks.yaml#/components/parameters/recordId'
responses:
'200':
$ref: 'ogcapi-records-1-building-blocks.yaml#/components/responses/Record'
'4XX':
$ref: 'ogcapi-records-1-building-blocks.yaml#/components/responses/BadRequest'
'404':
$ref: 'ogcapi-records-1-building-blocks.yaml#/components/responses/NotFound'
'406':
$ref: 'ogcapi-records-1-building-blocks.yaml#/components/responses/NotAcceptable'
'5XX':
$ref: 'ogcapi-records-1-building-blocks.yaml#/components/responses/ServerError'
components:
securitySchemes:
openIdConnect:
type: "openIdConnect"
openIdConnectUrl: "https://accounts.google.com/.well-known/openid-configuration"
security:
- openIdConnect: []