-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenapi.yaml
117 lines (115 loc) · 4.04 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
openapi: 3.0.3
info:
title: The SpatioTemporal Asset Catalog API - Query
description: Adds parameter to compare properties and only return the items that match
version: 1.0.0-rc.2
paths: {}
components:
parameters:
query:
name: query
x-stac-api-fragment: query
in: query
description: |-
**Extension:** Query
Query for properties in items.
Use the JSON form of the query used in POST.
required: false
schema:
type: string
schemas:
searchBody:
type: object
x-stac-api-fragment: query
description: |-
**Extension:** Query
Allows users to query properties for specific values
properties:
query:
$ref: '#/components/schemas/query'
query:
type: object
description: Define which properties to query and the operations to apply
additionalProperties:
$ref: '#/components/schemas/queryProp'
example:
eo:cloud_cover:
gt: 8
lt: 50
platform:
eq: 'landsat-8'
datetime:
gte: '2018-02-12T00:00:00Z'
lte: '2018-03-18T12:31:12Z'
pl:item_type:
startsWith: PSScene
product:
in:
- foo
- bar
- baz
eo:gsd:
in:
- 10
- 20
queryProp:
description: Apply query operations to a specific property
anyOf:
- description: if the object doesn't contain any of the operators, it is equivalent to using the equals operator
- type: object
description: Match using an operator
properties:
eq:
description: Find items with a property that is equal to the specified value. For strings, a case-insensitive comparison must be performed.
nullable: true
oneOf:
- type: string
- type: number
- type: boolean
neq:
description: Find items that *don't* contain the specified value. For strings, a case-insensitive comparison must be performed.
nullable: true
oneOf:
- type: string
- type: number
- type: boolean
gt:
description: Find items with a property value greater than the specified value.
oneOf:
- type: string
format: date-time
- type: number
lt:
description: Find items with a property value less than the specified value.
oneOf:
- type: string
format: date-time
- type: number
gte:
description: Find items with a property value greater than or equal the specified value.
oneOf:
- type: string
format: date-time
- type: number
lte:
description: Find items with a property value less than or equal the specified value.
oneOf:
- type: string
format: date-time
- type: number
startsWith:
description: Find items with a property that begins with the specified string. A case-insensitive comparison must be performed.
type: string
endsWith:
description: Find items with a property that ends with the specified string. A case-insensitive comparison must be performed.
type: string
contains:
description: Find items with a property that contains the specified literal string, e.g., matches ".*<STRING>.*". A case-insensitive comparison must be performed.
type: string
in:
description: Find items with a property that equals at least one entry in the specified array. A case-insensitive comparison must be performed.
type: array
items:
oneOf:
- type: string
- type: number