|
162 | 162 | "type": "string" |
163 | 163 | } |
164 | 164 | ], |
165 | | - "produces": [ |
166 | | - "application/json" |
167 | | - ], |
| 165 | + "produces": ["application/json"], |
168 | 166 | "responses": { |
169 | 167 | "200": { |
170 | 168 | "description": "Request succeeded. Returns boolean depicting if job is in cache.", |
|
189 | 187 | "get": { |
190 | 188 | "description": "This resource is not expecting parameters and it will return a list representing all active jobs in JSON format.", |
191 | 189 | "operationId": "get_jobs", |
192 | | - "produces": [ |
193 | | - "application/json" |
194 | | - ], |
| 190 | + "produces": ["application/json"], |
195 | 191 | "responses": { |
196 | 192 | "200": { |
197 | 193 | "description": "Request succeeded. The response contains the list of all active jobs.", |
|
200 | 196 | "jobs": { |
201 | 197 | "1612a779-f3fa-4344-8819-3d12fa9b9d90": { |
202 | 198 | "cmd": "date", |
203 | | - "cvmfs_mounts": [ |
204 | | - "atlas.cern.ch", |
205 | | - "atlas-condb.cern.ch" |
206 | | - ], |
| 199 | + "cvmfs_mounts": ["atlas.cern.ch", "atlas-condb.cern.ch"], |
207 | 200 | "docker_img": "docker.io/library/busybox", |
208 | 201 | "job_id": "1612a779-f3fa-4344-8819-3d12fa9b9d90", |
209 | 202 | "max_restart_count": 3, |
|
212 | 205 | }, |
213 | 206 | "2e4bbc1d-db5e-4ee0-9701-6e2b1ba55c20": { |
214 | 207 | "cmd": "date", |
215 | | - "cvmfs_mounts": [ |
216 | | - "atlas.cern.ch", |
217 | | - "atlas-condb.cern.ch" |
218 | | - ], |
| 208 | + "cvmfs_mounts": ["atlas.cern.ch", "atlas-condb.cern.ch"], |
219 | 209 | "docker_img": "docker.io/library/busybox", |
220 | 210 | "job_id": "2e4bbc1d-db5e-4ee0-9701-6e2b1ba55c20", |
221 | 211 | "max_restart_count": 3, |
|
236 | 226 | "summary": "Returns list of all active jobs." |
237 | 227 | }, |
238 | 228 | "post": { |
239 | | - "consumes": [ |
240 | | - "application/json" |
241 | | - ], |
| 229 | + "consumes": ["application/json"], |
242 | 230 | "description": "This resource is expecting JSON data with all the necessary information of a new job.", |
243 | 231 | "operationId": "create_job", |
244 | 232 | "parameters": [ |
|
252 | 240 | } |
253 | 241 | } |
254 | 242 | ], |
255 | | - "produces": [ |
256 | | - "application/json" |
257 | | - ], |
| 243 | + "produces": ["application/json"], |
258 | 244 | "responses": { |
259 | 245 | "201": { |
260 | 246 | "description": "Request succeeded. The job has been launched.", |
|
295 | 281 | "type": "string" |
296 | 282 | } |
297 | 283 | ], |
298 | | - "produces": [ |
299 | | - "application/json" |
300 | | - ], |
| 284 | + "produces": ["application/json"], |
301 | 285 | "responses": { |
302 | 286 | "200": { |
303 | 287 | "description": "Request succeeded. The response contains details about the given job ID.", |
304 | 288 | "examples": { |
305 | 289 | "application/json": { |
306 | 290 | "job": { |
307 | 291 | "cmd": "date", |
308 | | - "cvmfs_mounts": [ |
309 | | - "atlas.cern.ch", |
310 | | - "atlas-condb.cern.ch" |
311 | | - ], |
| 292 | + "cvmfs_mounts": ["atlas.cern.ch", "atlas-condb.cern.ch"], |
312 | 293 | "docker_img": "docker.io/library/busybox", |
313 | 294 | "job_id": "cdcf48b1-c2f3-4693-8230-b066e088c6ac", |
314 | 295 | "max_restart_count": 3, |
|
335 | 316 | }, |
336 | 317 | "/jobs/{job_id}/": { |
337 | 318 | "delete": { |
338 | | - "consumes": [ |
339 | | - "application/json" |
340 | | - ], |
| 319 | + "consumes": ["application/json"], |
341 | 320 | "description": "This resource expects the `job_id` of the job to be deleted.", |
342 | 321 | "operationId": "delete_job", |
343 | 322 | "parameters": [ |
|
356 | 335 | "type": "string" |
357 | 336 | } |
358 | 337 | ], |
359 | | - "produces": [ |
360 | | - "application/json" |
361 | | - ], |
| 338 | + "produces": ["application/json"], |
362 | 339 | "responses": { |
363 | 340 | "204": { |
364 | 341 | "description": "Request accepted. A request to delete the job has been sent to the\n compute backend." |
|
396 | 373 | "type": "string" |
397 | 374 | } |
398 | 375 | ], |
399 | | - "produces": [ |
400 | | - "application/json" |
401 | | - ], |
| 376 | + "produces": ["application/json"], |
402 | 377 | "responses": { |
403 | 378 | "200": { |
404 | 379 | "description": "Request succeeded. The response contains the logs for the given job.", |
|
0 commit comments