-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenapi.yaml
64 lines (62 loc) · 1.54 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
openapi: 3.0.3
info:
title: The SpatioTemporal Asset Catalog API - Sort
description: Adds Parameter to control sorting of returns results.
version: 1.0.0-rc.2
contact:
name: STAC Specification
url: 'http://stacspec.org'
license:
name: Apache License 2.0
url: 'http://www.apache.org/licenses/LICENSE-2.0'
paths: {}
components:
parameters:
sortby:
name: sortby
x-stac-api-fragment: sort
in: query
description: |-
**Extension:** Sort
An array of property names, prefixed by either "+" for ascending or
"-" for descending. If no prefix is provided, "+" is assumed.
required: false
schema:
type: string
example: '+id,-properties.eo:cloud_cover'
style: form
explode: false
schemas:
searchBody:
type: object
x-stac-api-fragment: sort
description: |-
**Extension:** Sort
Sort the results.
properties:
sortby:
$ref: '#/components/schemas/sortby'
sortby:
type: array
description: |
An array of objects containing a property name and sort direction.
minItems: 1
items:
type: object
required:
- field
- direction
properties:
field:
type: string
direction:
type: string
default: asc
enum:
- asc
- desc
example:
- field: properties.eo:cloud_cover
direction: asc
- field: id
direction: desc