|
171 | 171 | "type": "string" |
172 | 172 | } |
173 | 173 | ], |
174 | | - "produces": ["application/json"], |
| 174 | + "produces": [ |
| 175 | + "application/json" |
| 176 | + ], |
175 | 177 | "responses": { |
176 | 178 | "200": { |
177 | 179 | "description": "Request succeeded. Returns boolean depicting if job is in cache.", |
|
196 | 198 | "get": { |
197 | 199 | "description": "This resource is not expecting parameters and it will return a list representing all active jobs in JSON format.", |
198 | 200 | "operationId": "get_jobs", |
199 | | - "produces": ["application/json"], |
| 201 | + "produces": [ |
| 202 | + "application/json" |
| 203 | + ], |
200 | 204 | "responses": { |
201 | 205 | "200": { |
202 | 206 | "description": "Request succeeded. The response contains the list of all active jobs.", |
|
205 | 209 | "jobs": { |
206 | 210 | "1612a779-f3fa-4344-8819-3d12fa9b9d90": { |
207 | 211 | "cmd": "date", |
208 | | - "cvmfs_mounts": ["atlas.cern.ch", "atlas-condb.cern.ch"], |
| 212 | + "cvmfs_mounts": [ |
| 213 | + "atlas.cern.ch", |
| 214 | + "atlas-condb.cern.ch" |
| 215 | + ], |
209 | 216 | "docker_img": "docker.io/library/busybox", |
210 | 217 | "job_id": "1612a779-f3fa-4344-8819-3d12fa9b9d90", |
211 | 218 | "max_restart_count": 3, |
|
214 | 221 | }, |
215 | 222 | "2e4bbc1d-db5e-4ee0-9701-6e2b1ba55c20": { |
216 | 223 | "cmd": "date", |
217 | | - "cvmfs_mounts": ["atlas.cern.ch", "atlas-condb.cern.ch"], |
| 224 | + "cvmfs_mounts": [ |
| 225 | + "atlas.cern.ch", |
| 226 | + "atlas-condb.cern.ch" |
| 227 | + ], |
218 | 228 | "docker_img": "docker.io/library/busybox", |
219 | 229 | "job_id": "2e4bbc1d-db5e-4ee0-9701-6e2b1ba55c20", |
220 | 230 | "max_restart_count": 3, |
|
235 | 245 | "summary": "Returns list of all active jobs." |
236 | 246 | }, |
237 | 247 | "post": { |
238 | | - "consumes": ["application/json"], |
| 248 | + "consumes": [ |
| 249 | + "application/json" |
| 250 | + ], |
239 | 251 | "description": "This resource is expecting JSON data with all the necessary information of a new job.", |
240 | 252 | "operationId": "create_job", |
241 | 253 | "parameters": [ |
|
249 | 261 | } |
250 | 262 | } |
251 | 263 | ], |
252 | | - "produces": ["application/json"], |
| 264 | + "produces": [ |
| 265 | + "application/json" |
| 266 | + ], |
253 | 267 | "responses": { |
254 | 268 | "201": { |
255 | 269 | "description": "Request succeeded. The job has been launched.", |
|
290 | 304 | "type": "string" |
291 | 305 | } |
292 | 306 | ], |
293 | | - "produces": ["application/json"], |
| 307 | + "produces": [ |
| 308 | + "application/json" |
| 309 | + ], |
294 | 310 | "responses": { |
295 | 311 | "200": { |
296 | 312 | "description": "Request succeeded. The response contains details about the given job ID.", |
297 | 313 | "examples": { |
298 | 314 | "application/json": { |
299 | 315 | "job": { |
300 | 316 | "cmd": "date", |
301 | | - "cvmfs_mounts": ["atlas.cern.ch", "atlas-condb.cern.ch"], |
| 317 | + "cvmfs_mounts": [ |
| 318 | + "atlas.cern.ch", |
| 319 | + "atlas-condb.cern.ch" |
| 320 | + ], |
302 | 321 | "docker_img": "docker.io/library/busybox", |
303 | 322 | "job_id": "cdcf48b1-c2f3-4693-8230-b066e088c6ac", |
304 | 323 | "max_restart_count": 3, |
|
325 | 344 | }, |
326 | 345 | "/jobs/{job_id}/": { |
327 | 346 | "delete": { |
328 | | - "consumes": ["application/json"], |
| 347 | + "consumes": [ |
| 348 | + "application/json" |
| 349 | + ], |
329 | 350 | "description": "This resource expects the `job_id` of the job to be deleted.", |
330 | 351 | "operationId": "delete_job", |
331 | 352 | "parameters": [ |
|
344 | 365 | "type": "string" |
345 | 366 | } |
346 | 367 | ], |
347 | | - "produces": ["application/json"], |
| 368 | + "produces": [ |
| 369 | + "application/json" |
| 370 | + ], |
348 | 371 | "responses": { |
349 | 372 | "204": { |
350 | 373 | "description": "Request accepted. A request to delete the job has been sent to the\n compute backend." |
|
382 | 405 | "type": "string" |
383 | 406 | } |
384 | 407 | ], |
385 | | - "produces": ["application/json"], |
| 408 | + "produces": [ |
| 409 | + "application/json" |
| 410 | + ], |
386 | 411 | "responses": { |
387 | 412 | "200": { |
388 | 413 | "description": "Request succeeded. The response contains the logs for the given job.", |
|
406 | 431 | }, |
407 | 432 | "/shutdown": { |
408 | 433 | "delete": { |
409 | | - "consumes": ["application/json"], |
| 434 | + "consumes": [ |
| 435 | + "application/json" |
| 436 | + ], |
410 | 437 | "description": "All running jobs will be stopped and no more jobs will be scheduled. Kubernetes will call this endpoint before stopping the pod (PreStop hook).", |
411 | 438 | "operationId": "shutdown", |
412 | | - "produces": ["application/json"], |
| 439 | + "produces": [ |
| 440 | + "application/json" |
| 441 | + ], |
413 | 442 | "responses": { |
414 | 443 | "200": { |
415 | 444 | "description": "Request successful. All jobs were stopped.", |
|
0 commit comments