summaryrefslogtreecommitdiff
path: root/web-server/opendc/api/v2/topologies/topologyId/endpoint.py
diff options
context:
space:
mode:
authorGeorgios Andreadis <info@gandreadis.com>2020-07-01 13:33:31 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2020-08-24 19:47:17 +0200
commitde8f12d74faef5fa3f9e38d1340948cab2d06ea3 (patch)
tree678bf1af3e5fa2334f0df43388d45294785bbf1e /web-server/opendc/api/v2/topologies/topologyId/endpoint.py
parent44236756c4cf689806dc17c6950a2cff3e9227bf (diff)
Manually generate IDs
Diffstat (limited to 'web-server/opendc/api/v2/topologies/topologyId/endpoint.py')
-rw-r--r--web-server/opendc/api/v2/topologies/topologyId/endpoint.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/web-server/opendc/api/v2/topologies/topologyId/endpoint.py b/web-server/opendc/api/v2/topologies/topologyId/endpoint.py
index a4f71ed6..84f20903 100644
--- a/web-server/opendc/api/v2/topologies/topologyId/endpoint.py
+++ b/web-server/opendc/api/v2/topologies/topologyId/endpoint.py
@@ -9,7 +9,7 @@ from opendc.util.rest import Response
def GET(request):
"""Get this Topology."""
- request.check_required_parameters(path={'topologyId': 'int'})
+ request.check_required_parameters(path={'topologyId': 'string'})
topology = Topology.from_id(request.params_path['topologyId'])
@@ -21,7 +21,7 @@ def GET(request):
def PUT(request):
"""Update this topology"""
- request.check_required_parameters(path={'topologyId': 'int'}, body={'topology': {'name': 'string', 'rooms': {}}})
+ request.check_required_parameters(path={'topologyId': 'string'}, body={'topology': {'name': 'string', 'rooms': {}}})
topology = Topology.from_id(request.params_path['topologyId'])
topology.check_exists()
@@ -38,7 +38,7 @@ def PUT(request):
def DELETE(request):
"""Delete this topology"""
- request.check_required_parameters(path={'topologyId': 'int'})
+ request.check_required_parameters(path={'topologyId': 'string'})
topology = Topology.from_id(request.params_path['topologyId'])