Help Center/ Graph Engine Service/ devg/ Relationships Between SDKs and REST APIs
Updated on 2022-09-14 GMT+08:00

Relationships Between SDKs and REST APIs

Table 1 Relationships between SDKs and REST APIs

Interface

Method

API

Graph Service API

addVertex()

POST

/ges/v1.0/{projectId}/graphs/{graphName}/vertices

deleteVertex(GraphClient graphClient)

DELETE

/ges/v1.0/{projectId}/graphs/{graphName}/vertices/{vertexId}/

vertexQuery(GraphClient graphClient)

POST

/ges/v1.0/{projectId}/graphs/{graphName}/vertices/action?action_id=query

getVertices(GraphClient graphClient)

GET

/ges/v1.0/{projectId}/graphs/{graphName}/vertices/detail?vertexIds={vertexIds}

addEdge(GraphClient graphClient)

POST

/ges/v1.0/{projectId}/graphs/{graphName}/edges

deleteEdge(GraphClient graphClient)

DELETE

/ges/v1.0/{projectId}/graphs/{graphName}/edges?source={sourceVertex}&target={targetVertex}&index={index}

edgeQuery(GraphClient graphClient)

POST

/ges/v1.0/{projectId}/graphs/{graphName}/edges/action?action_id=query

getEdge(GraphClient graphClient)

GET

/ges/v1.0/{projectId}/graphs/{graphName}/edges/detail? source={sourceVertex}&target={targetVertex}&index={index}

getSchema(GraphClient graphClient)

GET

/ges/v1.0/{projectId}/graphs/{graphName}/schema

getSummary(GraphClient graphClient)

GET

/ges/v1.0/{projectId}/graphs/{graphName}/summary

executeGremlinQuery(GraphClient graphClient, String graphName)

POST

/ges/v1.0/{projectId}/{userId}/graphs/action?action_id=execute-gremlin-query

addLabel(GraphClient graphClient)

POST

/ges/v1.0/{projectId}/graphs/{graphName}/schema?labels

excuteCreateIndex(GraphClient graphClient)

POST

/ges/v1.0/{projectId}/graphs/{graphName}/indices

excuteDeleteIndex(GraphClient graphClient)

DELETE

/ges/v1.0/{projectId}/graphs/{graphName}/indices/{indexName}

excuteQueryIndex(GraphClient graphClient)

GET

/ges/v1.0/{projectId}/graphs/{graphName}/indices

exportGraph(GraphClient graphClient)

POST

/ges/v1.0/{projectId}/graphs/{graphName}/action?action_id=export-graph

clearGraph(GraphClient graphClient)

POST

/ges/v1.0/{projectId}/graphs/{graphName}/action?action_id=clear-graph

queryAsyncTask(GraphClient graphClient,String jobId)

GET

/ges/v1.0/{projectId}/graphs/jobs/{jobId}?offset=offset&limit=limit

stopAsyncTask(GraphClient graphClient,String jobId)

DELETE

/ges/v1.0/{projectId}/graphs/jobs/{jobId}

executeAlgorithm(GraphClient graphClient, String graphName)

POST

/ges/v1.0/{projectId}/{userId}/graphs/action?action_id=execute-algorithm

Graph Management API

getQuotas(GesClient client)

GET

/v1.0/{projectId}/graphs/quotas

checkSchema(GesClient client)

POST

/v1.0/{projectId}/graphs/action?action_id=check-schema

listGraphs(GesClient client)

GET

/v1.0/{projectId}/graphs?offset={offset}&limit={limit}

getGraphDetail(GesClient client, String graphId)

GET

/v1.0/{projectId}/graphs/{graphId}

createGraph(GesClient client)

POST

/v1.0/{projectId}/graphs

stopGraph(GesClient client, String graphId)

POST

/v1.0/{projectId}/graphs/{graphId}/action?action_id=stop

startGraph(GesClient client, String graphId)

POST

/v1.0/{projectId}/graphs/{graphId}/action?action_id=start

deleteGraph(GesClient client, String graphId)

DELETE

/v1.0/{projectId}/graphs/{graphId}

listBackups(GesClient client)

GET

/v1.0/{projectId}/graphs/backups?offset={offset}&limit={limit}

listBackupsByGraphId(GesClient client, String graphId)

GET

/v1.0/{projectId}/graphs/{graphId}/backups?offset={offset}&limit={limit}

createBackup(GesClient client, String graphId)

POST

/v1.0/{projectId}/graphs/{graphId}/backups

deleteBackup(GesClient client, String graphId, String backupId)

DELETE

/v1.0/{projectId}/graphs/{graphId}/backups/{backup_id}

getJobStatus(GesClient client, String graphId, String jobId)

GET

/v1.0/{projectId}/graphs/{graphId}/jobs/{jobId}/status