diff --git a/main.py b/main.py index 674cab1..c0e5ae6 100644 --- a/main.py +++ b/main.py @@ -223,6 +223,13 @@ async def fastapi_set_junction_pattern(network: str, junction: str, pattern: str return set_junction(network, junction, props) +@app.get("/getjunctionproperties/") +async def fastapi_get_junction_properties(network: str, junction: str) -> dict[str, Any]: + return get_junction(network, junction) + +@app.get("/setjunctionproperties/") +async def fastapi_set_junction_properties(network: str, junction: str, props: dict[str, Any]) -> ChangeSet: + return set_junction(network, junction, props) ############################################################ # reservoir 3.[RESERVOIRS]