diff --git a/main.py b/main.py index e0977d7..55dd907 100644 --- a/main.py +++ b/main.py @@ -952,7 +952,7 @@ async def fastapi_get_control_properties(network: str) -> dict[str, Any]: # example: set_control(p, ChangeSet({'control': 'x'})) @app.post("/setcontrolproperties/") -async def fastapi_set_control(network: str, req: Request) -> ChangeSet: +async def fastapi_set_control_properties(network: str, req: Request) -> ChangeSet: props = await req.json() return set_control(network, ChangeSet(props)) @@ -964,12 +964,12 @@ async def fastapi_get_rule_schema(network: str) -> dict[str, dict[str, Any]]: return get_rule_schema(network) @app.get("/getruleproperties/") -async def fastapi_get_rule(network: str) -> dict[str, Any]: +async def fastapi_get_rule_properties(network: str) -> dict[str, Any]: return get_rule(network) # example: set_rule(p, ChangeSet({'rule': 'x'})) @app.post("/setruleproperties/") -async def fastapi_set_rule(network: str, req: Request) -> ChangeSet: +async def fastapi_set_rule_properties(network: str, req: Request) -> ChangeSet: props = await req.json() return set_rule(network, ChangeSet(props)) @@ -1031,7 +1031,7 @@ async def fastapi_get_quality_schema(network: str) -> dict[str, dict[str, Any]]: return get_quality_schema(network) @app.get('/getqualityproperties/') -async def fastapi_get_quality(network: str, node: str) -> dict[str, Any]: +async def fastapi_get_quality_properties(network: str, node: str) -> dict[str, Any]: return get_quality(network, node) # example: set_quality(p, ChangeSet({'node': 'j1', 'quality': 10.0})) @@ -1083,12 +1083,12 @@ async def fastapi_get_vertex_schema(network: str) -> dict[str, dict[str, Any]]: return get_vertex_schema(network) @app.get('/getvertexproperties/') -async def fastapi_get_vertex(network: str, link: str) -> dict[str, Any]: +async def fastapi_get_vertex_properties(network: str, link: str) -> dict[str, Any]: return get_vertex(network, link) # set_vertex(p, ChangeSet({'link' : 'p0', 'coords': [{'x': 1.0, 'y': 2.0}, {'x': 2.0, 'y': 1.0}]})) @app.post('/setvertexproperties/') -async def set_vertex(network: str, req: Request) -> ChangeSet: +async def set_vertex_properties(network: str, req: Request) -> ChangeSet: props = await req.json() return set_vertex(network, ChangeSet(props)) @@ -1111,11 +1111,11 @@ async def fastapi_get_label_schema(network: str) -> dict[str, dict[str, Any]]: return get_label_schema(network) @app.get('/getlabelproperties/') -async def fastapi_get_label(network: str, x: float, y: float) -> dict[str, Any]: +async def fastapi_get_label_properties(network: str, x: float, y: float) -> dict[str, Any]: return get_label(network, x, y) @app.post('/setlabelproperties/') -async def fastapi_set_label(network: str, req: Request) -> ChangeSet: +async def fastapi_set_label_properties(network: str, req: Request) -> ChangeSet: props = await req.json() return set_label(network, ChangeSet(props)) @@ -1138,11 +1138,11 @@ async def fastapi_get_backdrop_schema(network: str) -> dict[str, dict[str, Any]] return get_backdrop_schema(network) @app.get('/getbackdropproperties/') -async def fastapi_get_backdrop(network: str) -> dict[str, Any]: +async def fastapi_get_backdrop_properties(network: str) -> dict[str, Any]: return get_backdrop(network) @app.post('/setbackdropproperties/') -async def fastapi_set_backdrop(network: str, req: Request) -> ChangeSet: +async def fastapi_set_backdrop_properties(network: str, req: Request) -> ChangeSet: props = await req.json() return set_backdrop(network, ChangeSet(props))