@@ -246,41 +246,39 @@ A C analyzer exists in the source tree, but it is commented out and is not curre
246246
247247This project is licensed under the MIT License - see the [ LICENSE] ( LICENSE ) file for details.
248248
249- Knowledge Graph, Code Analysis, Code Visualization, Dead Code Analysis, Graph Database
250-
251249## API Reference
252250
253251### Retrieve a graph
254252
255253Fetch graph entities from a repository:
256254
257255``` bash
258- curl -X GET " http://127.0.0.1:5000/graph_entities?repo=<REPO_NAME>" -H " Authorization: ${SECRET_TOKEN} "
256+ curl -X GET " http://127.0.0.1:5000/api/ graph_entities?repo=<REPO_NAME>" -H " Authorization: Bearer ${SECRET_TOKEN} "
259257```
260258
261259Example:
262260``` bash
263- curl -X GET " http://127.0.0.1:5000/graph_entities?repo=GraphRAG-SDK" -H " Authorization: ${SECRET_TOKEN} "
261+ curl -X GET " http://127.0.0.1:5000/api/ graph_entities?repo=GraphRAG-SDK" -H " Authorization: Bearer ${SECRET_TOKEN} "
264262```
265263
266264### Send Query
267265
268266Query your code graph using natural language:
269267
270268``` bash
271- curl -X POST http://127.0.0.1:5000/chat -H " Content-Type: application/json" -d ' {"repo": "<REPO_NAME>", "msg": "<YOUR_QUESTION>"}' -H " Authorization: ${SECRET_TOKEN} "
269+ curl -X POST http://127.0.0.1:5000/api/ chat -H " Content-Type: application/json" -d ' {"repo": "<REPO_NAME>", "msg": "<YOUR_QUESTION>"}' -H " Authorization: Bearer ${SECRET_TOKEN} "
272270```
273271
274- ### History change
272+ ### Commit history
275273
276274List all commits:
277275``` bash
278- curl -X POST http://127.0.0.1:5000/list_commits -H " Content-Type: application/json" -d ' {"repo": "<REPO_NAME>"}' -H " Authorization: ${SECRET_TOKEN} "
276+ curl -X POST http://127.0.0.1:5000/api/ list_commits -H " Content-Type: application/json" -d ' {"repo": "<REPO_NAME>"}' -H " Authorization: Bearer ${SECRET_TOKEN} "
279277```
280278
281279Switch to a specific commit:
282280``` bash
283- curl -X POST http://127.0.0.1:5000/switch_commit -H " Content-Type: application/json" -d ' {"repo": "<REPO_NAME>", "commit": "<COMMIT_HASH>"}' -H " Authorization: ${SECRET_TOKEN} "
281+ curl -X POST http://127.0.0.1:5000/api/ switch_commit -H " Content-Type: application/json" -d ' {"repo": "<REPO_NAME>", "commit": "<COMMIT_HASH>"}' -H " Authorization: Bearer ${SECRET_TOKEN} "
284282```
285283
286284Copyright FalkorDB Ltd. 2025
0 commit comments