This tool is used to provide restful API for TigerGraph system management, including create/drop user, grant/revoke user role, create/update/drop vertex/edge/graph.
This is a reference implementation, and it is not guaranteed to be up-to-dated or production-ready.
Go 1.13 is required.
Run go build -o server to build a server executable
run PORT=<port> ./server to serve at given port on m1 (the first node in the cluster).
The API server uses basic authentication.
Refer to example.sh for more details.
POST /api/gsqlcmd: execute gsql commandsGET /api/user/profile: get user profile,isSuperUser, roles on graphs, etcPOST /api/user/create: create userPOST /api/user/drop: drop userPOST /api/user/grant: grant role to usersPOST /api/user/revoke: revoke role from users
For usage, please refer to example.sh
Every file in the same directory of this README.md for this specific tool is in public domain.