Print request
This commit is contained in:
2
main.py
2
main.py
@@ -98,7 +98,9 @@ def fastapi_sync_with_server(network: str, operationid: int) -> ChangeSet:
|
|||||||
|
|
||||||
@app.post("/batch/")
|
@app.post("/batch/")
|
||||||
def fastapi_execute_batch_commands(network: str, request: Request) -> ChangeSet:
|
def fastapi_execute_batch_commands(network: str, request: Request) -> ChangeSet:
|
||||||
|
print(request)
|
||||||
jsTxt = request.json()
|
jsTxt = request.json()
|
||||||
|
print(jsTxt)
|
||||||
joOps = json.loads(jsTxt)['operations']
|
joOps = json.loads(jsTxt)['operations']
|
||||||
cs:ChangeSet = ChangeSet({})
|
cs:ChangeSet = ChangeSet({})
|
||||||
for js in joOps:
|
for js in joOps:
|
||||||
|
|||||||
Reference in New Issue
Block a user