From 4c272a01f38aba268dd8b8aa17dae4c9f56b087f Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Thu, 25 Jun 2020 18:13:11 +0200 Subject: Add simulation get path --- opendc/api/v2/simulations/simulationId/experiments/endpoint.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'opendc/api/v2/simulations/simulationId/experiments') 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', -- cgit v1.2.3