summaryrefslogtreecommitdiff
path: root/opendc/api/v2/simulations/simulationId/authorizations
diff options
context:
space:
mode:
authorGeorgios Andreadis <info@gandreadis.com>2020-06-25 10:30:43 +0200
committerGeorgios Andreadis <info@gandreadis.com>2020-06-25 10:30:43 +0200
commit4f75791f1a92c6993dbb65bee66f9aae6725bd92 (patch)
tree298817098c9a1478d58d18e446b7fcefb1578a75 /opendc/api/v2/simulations/simulationId/authorizations
parent64a8696e1507d6affd9b9ed56d2577cdb3fe9747 (diff)
Add PUT method and tests
Diffstat (limited to 'opendc/api/v2/simulations/simulationId/authorizations')
-rw-r--r--opendc/api/v2/simulations/simulationId/authorizations/userId/endpoint.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/opendc/api/v2/simulations/simulationId/authorizations/userId/endpoint.py b/opendc/api/v2/simulations/simulationId/authorizations/userId/endpoint.py
index edc86c88..19d13a65 100644
--- a/opendc/api/v2/simulations/simulationId/authorizations/userId/endpoint.py
+++ b/opendc/api/v2/simulations/simulationId/authorizations/userId/endpoint.py
@@ -11,7 +11,7 @@ def DELETE(request):
# Make sure required parameters are there
try:
- request.check_required_parameters(path={'simulationId': 'int', 'userId': 'int'})
+ request.check_required_parameters(path={'simulationId': 'int', 'userId': 'string'})
except exceptions.ParameterError as e:
return Response(400, str(e))
@@ -43,7 +43,7 @@ def GET(request):
# Make sure required parameters are there
try:
- request.check_required_parameters(path={'simulationId': 'int', 'userId': 'int'})
+ request.check_required_parameters(path={'simulationId': 'int', 'userId': 'string'})
except exceptions.ParameterError as e:
return Response(400, str(e))
@@ -73,7 +73,7 @@ def POST(request):
try:
request.check_required_parameters(path={
- 'userId': 'int',
+ 'userId': 'string',
'simulationId': 'int'
},
body={'authorization': {
@@ -135,7 +135,7 @@ def PUT(request):
try:
request.check_required_parameters(path={
'simulationId': 'int',
- 'userId': 'int'
+ 'userId': 'string'
},
body={'authorization': {
'authorizationLevel': 'string'