@RestController
@RequestMapping(value="/api/v1.2/graph-connections/{connId}/graph")
public class GraphController
extends BaseController
ORDER_ASC, ORDER_DESC| Constructor and Description |
|---|
GraphController() |
| Modifier and Type | Method and Description |
|---|---|
GraphView |
addEdge(int connId,
EdgeEntity entity) |
GraphView |
addVertex(int connId,
VertexEntity entity) |
org.apache.hugegraph.structure.graph.Edge |
updateEdge(int connId,
String edgeId,
EdgeEntity entity) |
org.apache.hugegraph.structure.graph.Vertex |
updateVertex(int connId,
String vertexId,
VertexEntity entity) |
checkIdSameAsBody, checkParamsNotEmpty, checkParamsNotEmpty, mergeEntity@PostMapping(value="vertex") public GraphView addVertex(@PathVariable(value="connId") int connId, @RequestBody VertexEntity entity)
@PutMapping(value="vertex/{id}")
public org.apache.hugegraph.structure.graph.Vertex updateVertex(@PathVariable(value="connId")
int connId,
@PathVariable(value="id")
String vertexId,
@RequestBody
VertexEntity entity)
@PostMapping(value="edge") public GraphView addEdge(@PathVariable(value="connId") int connId, @RequestBody EdgeEntity entity)
@PutMapping(value="edge/{id}")
public org.apache.hugegraph.structure.graph.Edge updateEdge(@PathVariable(value="connId")
int connId,
@PathVariable(value="id")
String edgeId,
@RequestBody
EdgeEntity entity)
Copyright © 2024 The Apache Software Foundation. All rights reserved.