This repository has been archived by the owner on Jan 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
openapi.yaml
86 lines (86 loc) · 3.09 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
openapi: 3.0.3
info:
title: The SpatioTemporal Asset Catalog API - STAC API - Features with Version Extension
version: 0.1.0
description: >-
This is an OpenAPI definition of the SpatioTemporal Asset Catalog API - Features
specification.
contact:
name: STAC Specification
url: 'http://stacspec.org'
license:
name: Apache License 2.0
url: 'http://www.apache.org/licenses/LICENSE-2.0'
tags:
- name: Version
description: This version API extension defines the API resources and semantics for creating and accessing versioned records.
paths:
'/collections/{collectionId}/versions':
get:
summary: returns a list of links for a versioned collection
description: returns a list of links for a versioned collection
tags:
- Version
operationId: getCollectionVersions
parameters:
- $ref: '../../openapi.yaml#/components/parameters/collectionId'
responses:
'200':
description: A catalog JSON definition the returns list of links of a collection versions
content:
application/json:
schema:
$ref: '../../../core/commons.yaml#/components/schemas/catalog'
'/collections/{collectionId}/versions/{versionId}':
get:
summary: returns the requested version of a collection
description: returns the requested version of a collection
tags:
- Version
operationId: getCollectionVersion
parameters:
- $ref: '../../openapi.yaml#/components/parameters/collectionId'
- $ref: '#/components/parameters/versionId'
responses:
'200':
$ref: '../../openapi.yaml#/components/responses/Collections'
'/collections/{collectionId}/items/{featureId}/versions':
get:
summary: returns a list of links for a versioned item
description: returns a list of links for a versioned item
tags:
- Version
operationId: getItemVersions
parameters:
- $ref: '../../openapi.yaml#/components/parameters/collectionId'
- $ref: '../../openapi.yaml#/components/parameters/featureId'
responses:
'200':
description: A catalog JSON definition the returns list of links of an item versions
content:
application/json:
schema:
$ref: '../../../core/commons.yaml#/components/schemas/catalog'
'/collections/{collectionId}/items/{featureId}/versions/{versionId}':
get:
summary: returns the requested version of an item
description: returns the requested version of an item
tags:
- Version
operationId: getItemVersion
parameters:
- $ref: '../../openapi.yaml#/components/parameters/collectionId'
- $ref: '../../openapi.yaml#/components/parameters/featureId'
- $ref: '#/components/parameters/versionId'
responses:
'200':
$ref: '../../openapi.yaml#/components/responses/Collections'
components:
parameters:
versionId:
name: versionId
in: path
description: local identifier of a version
required: true
schema:
type: string