diff options
| author | Georgios Andreadis <info@gandreadis.com> | 2020-06-25 18:13:11 +0200 |
|---|---|---|
| committer | Georgios Andreadis <info@gandreadis.com> | 2020-06-25 18:13:11 +0200 |
| commit | 4c272a01f38aba268dd8b8aa17dae4c9f56b087f (patch) | |
| tree | c31a2846f2b235e662899e4cad3888c8d6e6ae04 /opendc/api/v2/simulations/simulationId/experiments | |
| parent | c0bf71322e4fd510046588e388ada0a81f54631d (diff) | |
Add simulation get path
Diffstat (limited to 'opendc/api/v2/simulations/simulationId/experiments')
| -rw-r--r-- | opendc/api/v2/simulations/simulationId/experiments/endpoint.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/opendc/api/v2/simulations/simulationId/experiments/endpoint.py b/opendc/api/v2/simulations/simulationId/experiments/endpoint.py index 5ecaffb7..9df84838 100644 --- a/opendc/api/v2/simulations/simulationId/experiments/endpoint.py +++ b/opendc/api/v2/simulations/simulationId/experiments/endpoint.py @@ -10,7 +10,7 @@ def GET(request): # Make sure required parameters are there try: - request.check_required_parameters(path={'simulationId': 'int'}) + request.check_required_parameters(path={'simulationId': 'string'}) except exceptions.ParameterError as e: return Response(400, str(e)) @@ -43,10 +43,10 @@ def POST(request): # Make sure required parameters are there try: - request.check_required_parameters(path={'simulationId': 'int'}, + request.check_required_parameters(path={'simulationId': 'string'}, body={ 'experiment': { - 'simulationId': 'int', + 'simulationId': 'string', 'pathId': 'int', 'traceId': 'int', 'schedulerName': 'string', |
