Refine
This commit is contained in:
31
main.py
31
main.py
@@ -2041,6 +2041,37 @@ async def fastapi_get_all_scada_info(network: str) -> list[dict[str, float]]:
|
||||
return get_all_scada_info(network)
|
||||
|
||||
|
||||
###########################################################
|
||||
# user 39
|
||||
###########################################################
|
||||
@app.get('/getuserschema/')
|
||||
async def fastapi_get_user_schema(network: str) -> dict[str, dict[str, Any]]:
|
||||
return get_user_schema(network)
|
||||
|
||||
@app.get('/getuser/')
|
||||
async def fastapi_get_user(network: str, user_name: str) -> dict[str, float]:
|
||||
return get_user(network, user_name)
|
||||
|
||||
@app.get('/getallusers/')
|
||||
async def fastapi_get_all_users(network: str) -> list[dict[str, float]]:
|
||||
return get_all_users(network)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# inp file
|
||||
@app.post("/uploadinp/", status_code=status.HTTP_200_OK)
|
||||
async def fastapi_upload_inp(afile: bytes, name: str ):
|
||||
|
||||
Reference in New Issue
Block a user