21.3 Get Graphs
GET
https://localhost:7007/v2/graphs
Get the list of graphs for the specified driver.
Version: v2
Request
Request Header
- Accept:
application/json; charset=UTF-8 - Header:
Authorization: Bearer <token> - Content-Type:
application/json
Request Query Parameter
- driver (required): Specifies the PGQL driver value. This is a
mandatory parameter. Supported values are as follows:
GRAPH_SERVER_PGX: Graphs loaded into the graph server (PGX)PGQL_IN_DATABASE: PGQL property graphs in the databaseSQL_IN_DATABASE: SQL property graphs in the database
Response
- 200 OK
- Content-Type:
application/json
Sample Response Body
[
{
"schema": <value>,
"graphName": <value>
}
]
Note that the schema parameter will be
NULL for graphs created in the graph server (PGX).
cURL Example
curl --location --request GET 'https://localhost:7007/v2/graphs?driver=<driver-value>' \
--header 'Authorization: Bearer <token>'
Parent topic: Graph Server REST API Version 2