|
2449 | 2449 | }
|
2450 | 2450 | }
|
2451 | 2451 | },
|
| 2452 | + "/simulation/{simid}/createWorkflowFromJSONString": { |
| 2453 | + "post": { |
| 2454 | + "tags": [ |
| 2455 | + "WRENCH" |
| 2456 | + ], |
| 2457 | + "summary": "Simulate workflow from JSON file.", |
| 2458 | + "operationId": "createWorkflowFromJSON", |
| 2459 | + "parameters": [ |
| 2460 | + { |
| 2461 | + "name": "simid", |
| 2462 | + "in": "path", |
| 2463 | + "description": "ID of the simulation", |
| 2464 | + "required": true, |
| 2465 | + "schema": { |
| 2466 | + "type": "string" |
| 2467 | + } |
| 2468 | + } |
| 2469 | + ], |
| 2470 | + "requestBody": { |
| 2471 | + "description": "Input to create workflow from JSON.", |
| 2472 | + "required": true, |
| 2473 | + "content": { |
| 2474 | + "application/json": { |
| 2475 | + "schema": { |
| 2476 | + "properties": { |
| 2477 | + "compute_service_name": { |
| 2478 | + "type": "string", |
| 2479 | + "description": "The cloud service's name" |
| 2480 | + }, |
| 2481 | + "json_string": { |
| 2482 | + "type": "string", |
| 2483 | + "description": "Workflow file" |
| 2484 | + }, |
| 2485 | + "reference_flop_rate": { |
| 2486 | + "type": "str", |
| 2487 | + "description": "Reference flop rate" |
| 2488 | + }, |
| 2489 | + "ignore_machine_specs": { |
| 2490 | + "type": "bool", |
| 2491 | + "description": "Ignore machine specs" |
| 2492 | + }, |
| 2493 | + "redundant, dependencies": { |
| 2494 | + "type": "bool", |
| 2495 | + "description": "Redundant deendencies" |
| 2496 | + }, |
| 2497 | + "ignore_cycle_creating_dependencies": { |
| 2498 | + "type": "bool", |
| 2499 | + "description": "Ignore cycle creating dependencies" |
| 2500 | + }, |
| 2501 | + "min_cores_per_task": { |
| 2502 | + "type": "float", |
| 2503 | + "description": "Min cores per task" |
| 2504 | + }, |
| 2505 | + "max_cores_per_task": { |
| 2506 | + "type": "float", |
| 2507 | + "description": "Max cores per task" |
| 2508 | + }, |
| 2509 | + "enforce_num_cores": { |
| 2510 | + "type": "bool", |
| 2511 | + "description": "Enforce num cores" |
| 2512 | + }, |
| 2513 | + "ignore_avg_cpu": { |
| 2514 | + "type": "bool", |
| 2515 | + "description": "Ignore average cpu" |
| 2516 | + }, |
| 2517 | + "show_warnings": { |
| 2518 | + "type": "bool", |
| 2519 | + "description": "Show warnings" |
| 2520 | + } |
| 2521 | + } |
| 2522 | + } |
| 2523 | + } |
| 2524 | + } |
| 2525 | + }, |
| 2526 | + "responses": { |
| 2527 | + "200": { |
| 2528 | + "description": "OK", |
| 2529 | + "content": { |
| 2530 | + "application/json": { |
| 2531 | + "schema": { |
| 2532 | + "$ref": "#/components/schemas/ServiceResponse" |
| 2533 | + } |
| 2534 | + } |
| 2535 | + } |
| 2536 | + }, |
| 2537 | + "405": { |
| 2538 | + "description": "Invalid input", |
| 2539 | + "content": {} |
| 2540 | + } |
| 2541 | + } |
| 2542 | + } |
| 2543 | + }, |
2452 | 2544 | "components": {
|
2453 | 2545 | "schemas": {
|
2454 | 2546 | "SimulationInput": {
|
|
0 commit comments