Add method to get all vertex links and vertices

This commit is contained in:
DingZQ
2023-05-07 09:22:22 +08:00
parent 948f5de767
commit 6dea276464

View File

@@ -1349,6 +1349,13 @@ async def fastapi_delete_vertex(network: str, req: Request) -> ChangeSet:
props = await req.json()
return api.delete_vertex(network, ChangeSet(props))
@app.get('/getallvertexlinks/')
async def fastapi_get_all_vertex_links(network: str) -> list[str]:
return json.dumps(get_all_vertex_links(network))
@app.get('/getallvertices/')
async def get_all_vertices(network: str) -> list[dict[str, Any]]:
return json.dumps(get_all_vertices(network))
############################################################
# label 26.[LABELS]