Add get_junction_properites and set_junciton_properties
This commit is contained in:
7
main.py
7
main.py
@@ -223,6 +223,13 @@ async def fastapi_set_junction_pattern(network: str, junction: str, pattern: str
|
|||||||
|
|
||||||
return set_junction(network, junction, props)
|
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]
|
# reservoir 3.[RESERVOIRS]
|
||||||
|
|||||||
Reference in New Issue
Block a user