This repository was archived by the owner on Mar 7, 2024. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathapi_schema.yml
More file actions
267 lines (267 loc) · 6.04 KB
/
Copy pathapi_schema.yml
File metadata and controls
267 lines (267 loc) · 6.04 KB
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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
openapi: 3.0.1
info:
title: Complexify API
description: API for Complexify job interactions
contact:
email: cjgrady@ku.edu
license:
name: GPL 3
url: https://www.gnu.org/licenses/gpl-3.0.en.html
version: 1.0.0
servers:
- url: https://complexify.specifysystems.org/api/
tags:
- name: job
description: Everything about a job
- name: user
description: Operations about user
externalDocs:
description: Find out more about our store
url: http://swagger.io
paths:
/datatype:
get:
tags:
- datatype
summary: Get a list of available data types
operationId: list_data_types
responses:
200:
description: List of available data types
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/DataType'
/datatype/{data_type_name}:
get:
tags:
- datatype
summary: Get information about a specific data type
operationId: get_data_type_info
parameters:
- name: data_type_name
in: path
schema:
type: string
required: true
responses:
200:
description: Metadata about a particular data type
content:
application/json:
schema:
$ref: '#/components/schemas/DataType'
/job:
post:
tags:
- job
summary: Add a new job for computation
operationId: post_job
requestBody:
description: Job configuration for computations
content:
application/json:
schema:
$ref: '#/components/schemas/Job'
required: true
responses:
405:
description: Invalid input
content: {}
x-codegen-request-body-name: body
/job/{job_id}:
get:
tags:
- job
summary: Get job metadata
operationId: get_job_metadata
parameters:
- name: job_id
in: path
schema:
type: string
required: true
responses:
200:
description: Metadata about a job
content:
application/json:
schema:
$ref: '#/components/schemas/JobMeta'
/job/{job_id}/download:
get:
tags:
- job
summary: Get job outputs
operationId: get_job_download
parameters:
- name: job_id
in: path
schema:
type: string
required: true
responses:
200:
description: Job output download
content: {}
/job/{job_id}/report:
get:
tags:
- job
summary: Get a report of a computed job
operationId: get_job_report
parameters:
- name: job_id
in: path
schema:
type: string
required: true
responses:
200:
description: Job computation report
content:
application/json:
schema:
$ref: '#/components/schemas/JobReport'
/jobconfig:
post:
tags:
- job
summary: Get a job configuration for computation and update its status
operationId: get_job_config
responses:
201:
description: Job configuration for computation
content:
application/json:
schema:
$ref: '#/components/schemas/Job'
/jobconfig/{job_id}:
put:
tags:
- job
summary: Update job status
operationId: update_job_status
parameters:
- name: job_id
in: path
schema:
type: string
required: true
- name: status
in: query
schema:
type: integer
required: true
responses:
201:
description: Job update response
content: {}
/task:
get:
tags:
- task
summary: Get a list of available tasks
operationId: list_task_types
responses:
200:
description: List of available tasks
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/TaskInfo'
/task/{task_name}:
get:
tags:
- task
summary: Get information about a specific task type
operationId: get_task_info
parameters:
- name: task_name
in: path
schema:
type: string
required: true
responses:
200:
description: Metadata about a particular task type
content:
application/json:
schema:
$ref: '#/components/schemas/TaskInfo'
/upload/{name}:
put:
tags:
- upload
summary: PUT an uploaded file for use in workflows
operationId: upload_file
parameters:
- name: name
in: path
schema:
type: string
required: true
- name: datatype
in: query
schema:
type: string
required: true
requestBody:
content: {}
responses:
201:
description: Uploaded file
content: {}
components:
schemas:
DataType:
type: object
properties:
mime_type:
type: string
Job:
type: object
properties:
email:
type: string
tasks:
type: array
items:
$ref: '#/components/schemas/TaskConfig'
JobMeta:
type: object
properties:
job_id:
type: string
download_url:
type: string
status:
type: integer
create_time:
type: string
update_time:
type: string
expiration_time:
type: string
JobReport:
type: object
TaskConfig:
type: object
properties:
task_id:
type: string
TaskInfo:
type: object
properties:
name:
type: string
description:
type: string
inputs:
type: array
items:
type: object