-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathopenapi.yaml
186 lines (179 loc) · 5.7 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
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
openapi: 3.0.3
info:
title: The SpatioTemporal Asset Catalog API - Filter
description: Adds parameters to compare properties and only return the items that match
version: 1.0.0-rc.2
tags:
- name: Core
description: Part of STAC API - Core definition
- name: Collections
description: Part of STAC API - Collections definition
- name: Features
description: Part of STAC API - Features definition
- name: Filter Extension
description: Part of STAC API - Filter extension definition
paths:
'/':
get:
description: Landing Page
tags:
- Core
responses:
'200':
description: Landing Page
links:
queryables:
operationId: getQueryables
description: |-
A link with rel=queryables for the entire catalog.
/queryables:
get:
summary: Get the JSON Schema defining the list of variable terms that can be used in CQL2 expressions.
operationId: getQueryables
description: |-
This endpoint returns a list of variable terms that can be used in CQL2 expressions. The
precise definition of this can be found in the OGC API - Features - Part 3: Filtering and the
Common Query Language (CQL2) specification.
tags:
- Filter Extension
responses:
'200':
$ref: '#/components/responses/Queryables'
default:
$ref: '#/components/responses/Error'
/collections/{collectionId}:
get:
description: |-
This endpoint returns a list of Collections.
tags:
- Features
- Collections
parameters:
- in: path
name: collectionId
schema:
type: string
required: true
description: ID of Collection
responses:
'200':
description: Collection description
links:
queryables:
operationId: getQueryables
description: |-
A link with rel=queryables for queryables to only apply to this collection.
/collections/{collectionId}/queryables:
get:
summary: Get the JSON Schema defining the list of variable terms that can be used in CQL2 expressions.
operationId: getQueryablesForCollection
description: |-
This endpoint returns a list of variable terms that can be used in CQL2 expressions. The
precise definition of this can be found in the OGC API - Features - Part 3: Filtering and the
Common Query Language (CQL) specification.
parameters:
- in: path
name: collectionId
schema:
type: string
required: true
description: ID of Collection
tags:
- Filter Extension
responses:
'200':
$ref: '#/components/responses/Queryables'
default:
$ref: '#/components/responses/Error'
components:
parameters:
filter:
name: filter
x-stac-api-fragment: filter
in: query
description: |-
**Extension:** Filter
A CQL2 filter expression for filtering items.
required: true
schema:
oneOf:
- $ref: '#/components/schemas/filter-cql2-json'
- $ref: '#/components/schemas/filter-cql2-text'
filter-lang:
name: filter-lang
x-stac-api-fragment: filter
in: query
description: |-
**Extension:** Filter
The CQL2 filter encoding that the 'filter' value uses. Must be one of 'cql2-text' or 'cql2-json'.
required: false
schema:
$ref: '#/components/schemas/filter-lang'
filter-crs:
name: filter-crs
x-stac-api-fragment: filter
in: query
description: |-
**Extension:** Filter
The CRS used by spatial predicates in the filter parameter. In STAC API, only value that must be accepted
is 'http://www.opengis.net/def/crs/OGC/1.3/CRS84'.
required: false
schema:
$ref: '#/components/schemas/filter-crs'
schemas:
searchBody:
type: object
x-stac-api-fragment: filter
description: |-
**Extension:** Filter
A filter for properties in Items.
properties:
filter:
$ref: '#/components/schemas/filter-cql2-json'
filter-lang:
$ref: '#/components/schemas/filter-lang'
filter-crs:
$ref: '#/components/schemas/filter-crs'
filter-cql2-text:
description: |
A CQL2 filter expression in the 'cql2-text' encoding.
type: string
filter-cql2-json:
$ref: 'https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/cql2/standard/schema/cql2.yml#/components/schemas/booleanExpression'
filter-lang:
description: |
The CQL2 filter encoding that the 'filter' value uses.
type: string
enum:
- 'cql2-text'
- 'cql2-json'
filter-crs:
description: |
The coordinate reference system (CRS) used by spatial literals in the 'filter' value. The only value that STAC APIs must
accept is 'http://www.opengis.net/def/crs/OGC/1.3/CRS84'.
type: string
format: uri
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:
Queryables:
description: A JSON Schema defining the Queryables allowed in CQL2 expressions
content:
application/schema+json:
schema:
type: object
Error:
description: An error occurred.
content:
application/json:
schema:
$ref: '#/components/schemas/exception'