forked from opengeospatial/ogcapi-processes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
openapi.yaml
204 lines (193 loc) · 9.59 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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
openapi: 3.0.3
info:
title: The OGC API - Processes
version: 1.0
description: |-
WARNING - THIS IS WORK IN PROGRESS
contact:
name: Benjamin Pross
email: [email protected]
license:
name: OGC license
url: "https://raw.githubusercontent.com/opengeospatial/ogcapi-processes/master/LICENSE"
paths:
/:
get:
summary: landing page of this API
description: >-
The landing page provides links to the:
* The APIDefinition (no fixed path),
* The Conformance statements (path /conformance),
* The processes metadata (path /processes),
* The endpoint for job monitoring (path /jobs).
For more information, see [Section 7.2](http://docs.ogc.org/DRAFTS/18-062.html#sc_landing_page).
operationId: getLandingPage
tags:
- Capabilities
responses:
200:
$ref: "https://raw.githubusercontent.com/opengeospatial/ogcapi-processes/master/core/openapi/responses/LandingPage.yaml"
500:
$ref: "https://raw.githubusercontent.com/opengeospatial/ogcapi-processes/master/core/openapi/responses/ServerError.yaml"
/conformance:
get:
summary: information about standards that this API conforms to
description: |
A list of all conformance classes, specified in a standard, that the server conforms to.
| Conformance class | URI |
|-----------|-------|
|Core|http://www.opengis.net/spec/ogcapi-processes-1/1.0/conf/core|
|OGC Process Description|http://www.opengis.net/spec/ogcapi-processes-1/1.0/conf/ogc-process-description|
|JSON|http://www.opengis.net/spec/ogcapi-processes-1/1.0/conf/json|
|HTML|http://www.opengis.net/spec/ogcapi-processes-1/1.0/conf/html|
|OpenAPI Specification 3.0|http://www.opengis.net/spec/ogcapi-processes-1/1.0/conf/oas30|
|Job list|http://www.opengis.net/spec/ogcapi-processes-1/1.0/conf/job-list|
|Callback|http://www.opengis.net/spec/ogcapi-processes-1/1.0/conf/callback|
|Dismiss|http://www.opengis.net/spec/ogcapi-processes-1/1.0/conf/dismiss|
For more information, see [Section 7.4](http://docs.ogc.org/DRAFTS/18-062.html#sc_conformance_classes).
operationId: getConformanceClasses
tags:
- ConformanceDeclaration
responses:
200:
$ref: "https://raw.githubusercontent.com/opengeospatial/ogcapi-processes/master/core/openapi/responses/ConformanceDeclaration.yaml"
500:
$ref: "https://raw.githubusercontent.com/opengeospatial/ogcapi-processes/master/core/openapi/responses/ServerError.yaml"
/processes:
get:
summary: retrieve the list of available processes
description: |
The list of processes contains a summary of each process the OGC API - Processes offers, including the link to a more detailed description of the process.
For more information, see [Section 7.7](http://docs.ogc.org/DRAFTS/18-062.html#sc_process_list).
operationId: getProcesses
tags:
- ProcessList
responses:
200:
$ref: "https://raw.githubusercontent.com/opengeospatial/ogcapi-processes/master/core/openapi/responses/ProcessList.yaml"
/processes/{processID}:
get:
summary: retrieve a process description
description: |
The process description contains information about inputs and outputs and a link to the execution-endpoint for the process. The Core does not mandate the use of a specific process description to specify the interface of a process. That said, the Core requirements class makes the following recommendation:
Implementations SHOULD consider supporting the OGC process description.
For more information, see [Section 7.8](http://docs.ogc.org/DRAFTS/18-062.html#sc_process_description).
operationId: getProcessDescription
tags:
- ProcessDescription
parameters:
- $ref: "https://raw.githubusercontent.com/opengeospatial/ogcapi-processes/master/core/openapi/parameters/processIDPathParam.yaml"
responses:
200:
$ref: "https://raw.githubusercontent.com/opengeospatial/ogcapi-processes/master/core/openapi/responses/ProcessDescription.yaml"
404:
$ref: "https://raw.githubusercontent.com/opengeospatial/ogcapi-processes/master/core/openapi/responses/NotFound.yaml"
/jobs:
get:
summary: retrieve the list of jobs.
description: |
Lists available jobs.
For more information, see [Section 12](http://docs.ogc.org/DRAFTS/18-062.html#Job_list).
operationId: getJobs
tags:
- JobList
responses:
200:
$ref: "https://raw.githubusercontent.com/opengeospatial/ogcapi-processes/master/core/openapi/responses/JobList.yaml"
404:
$ref: "https://raw.githubusercontent.com/opengeospatial/ogcapi-processes/master/core/openapi/responses/NotFound.yaml"
/processes/{processID}/execution:
post:
summary: execute a process.
description: |
Create a new job.
For more information, see [Section 7.9](http://docs.ogc.org/DRAFTS/18-062.html#sc_create_job).
operationId: execute
tags:
- Execute
parameters:
- $ref: "https://raw.githubusercontent.com/opengeospatial/ogcapi-processes/master/core/openapi/parameters/processIDPathParam.yaml"
requestBody:
description: Mandatory execute request JSON
required: true
content:
application/json:
schema:
$ref: "https://raw.githubusercontent.com/opengeospatial/ogcapi-processes/master/core/openapi/schemas/execute.yaml"
responses:
200:
$ref: 'https://raw.githubusercontent.com/opengeospatial/ogcapi-processes/master/core/openapi/responses/ExecuteSync.yaml'
201:
$ref: "https://raw.githubusercontent.com/opengeospatial/ogcapi-processes/master/core/openapi/responses/ExecuteAsync.yaml"
404:
$ref: "https://raw.githubusercontent.com/opengeospatial/ogcapi-processes/master/core/openapi/responses/NotFound.yaml"
500:
$ref: "https://raw.githubusercontent.com/opengeospatial/ogcapi-processes/master/core/openapi/responses/ServerError.yaml"
callbacks:
jobCompleted:
"{$request.body#/subscriber/successUri}":
post:
requestBody:
content:
application/json:
schema:
$ref: "https://raw.githubusercontent.com/opengeospatial/ogcapi-processes/master/core/openapi/schemas/results.yaml"
responses:
200:
description: Results received successfully
/jobs/{jobId}:
get:
summary: retrieve the status of a job
description: |
Shows the status of a job.
For more information, see [Section 7.10](http://docs.ogc.org/DRAFTS/18-062.html#sc_retrieve_status_info).
operationId: getStatus
tags:
- Status
parameters:
- $ref: "https://raw.githubusercontent.com/opengeospatial/ogcapi-processes/master/core/openapi/parameters/jobID.yaml"
responses:
200:
$ref: "https://raw.githubusercontent.com/opengeospatial/ogcapi-processes/master/core/openapi/responses/Status.yaml"
404:
$ref: "https://raw.githubusercontent.com/opengeospatial/ogcapi-processes/master/core/openapi/responses/NotFound.yaml"
500:
$ref: "https://raw.githubusercontent.com/opengeospatial/ogcapi-processes/master/core/openapi/responses/ServerError.yaml"
delete:
summary: cancel a job execution, remove a finished job
description: |
Cancel a job execution and remove it from the jobs list.
For more information, see [Section 14](http://docs.ogc.org/DRAFTS/18-062.html#Dismiss).
operationId: dismiss
tags:
- Dismiss
parameters:
- $ref: "https://raw.githubusercontent.com/opengeospatial/ogcapi-processes/master/core/openapi/parameters/jobID.yaml"
responses:
200:
$ref: "https://raw.githubusercontent.com/opengeospatial/ogcapi-processes/master/core/openapi/responses/Status.yaml"
404:
$ref: "https://raw.githubusercontent.com/opengeospatial/ogcapi-processes/master/core/openapi/responses/NotFound.yaml"
500:
$ref: "https://raw.githubusercontent.com/opengeospatial/ogcapi-processes/master/core/openapi/responses/ServerError.yaml"
/jobs/{jobId}/results:
get:
summary: retrieve the result(s) of a job
description: |
Lists available results of a job. In case of a failure, lists exceptions instead.
For more information, see [Section 7.11](http://docs.ogc.org/DRAFTS/18-062.html#sc_retrieve_job_results).
operationId: getResult
tags:
- Result
parameters:
- $ref: "https://raw.githubusercontent.com/opengeospatial/ogcapi-processes/master/core/openapi/parameters/jobID.yaml"
responses:
200:
$ref: "https://raw.githubusercontent.com/opengeospatial/ogcapi-processes/master/core/openapi/responses/Results.yaml"
404:
$ref: "https://raw.githubusercontent.com/opengeospatial/ogcapi-processes/master/core/openapi/responses/NotFound.yaml"
500:
$ref: "https://raw.githubusercontent.com/opengeospatial/ogcapi-processes/master/core/openapi/responses/ServerError.yaml"
servers:
- description: 52°North demo server
url: http://geoprocessing.demo.52north.org:8080/javaps/rest/