Add tack snapshot and pick snapshot
This commit is contained in:
8
main.py
8
main.py
@@ -103,6 +103,14 @@ async def fastapi_execute_batch_commands(network: str, req: Request)-> ChangeSet
|
|||||||
cs: ChangeSet = ChangeSet()
|
cs: ChangeSet = ChangeSet()
|
||||||
cs.operations = jo_root['operations']
|
cs.operations = jo_root['operations']
|
||||||
return execute_batch_commands(network, cs)
|
return execute_batch_commands(network, cs)
|
||||||
|
|
||||||
|
@app.post("/tacksnapshot/")
|
||||||
|
async def fastapi_take_snapeshot(network: str, snapshot: str)-> int:
|
||||||
|
return take_snapshot(network, snapshot)
|
||||||
|
|
||||||
|
@app.post("/picksnapshot/")
|
||||||
|
async def fastapi_pick_snapeshot(network: str, snapshot: str)-> ChangeSet:
|
||||||
|
return pick_snapshot(network, snapshot)
|
||||||
|
|
||||||
# node
|
# node
|
||||||
@app.get("/getnodes/")
|
@app.get("/getnodes/")
|
||||||
|
|||||||
Reference in New Issue
Block a user