Add get_junction_properites and set_junciton_properties

This commit is contained in:
DingZQ
2022-09-25 13:03:16 +08:00
parent 7d7a525f54
commit 843d22cc3f

View File

@@ -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]