Apache AGE — Console & API
Pilote ta base graphe PostgreSQL avec Cypher.
Graphes
Lister, créer et supprimer les graphes.
Console Cypher
Exécuter n'importe quelle requête Cypher sur un graphe.
API REST
JSON sous /api — graphs, nodes, edges, cypher.
Endpoints REST
| Méthode | Chemin | Description |
|---|---|---|
| GET | /api/graphs | Liste des graphes |
| POST | /api/graphs | Crée un graphe — body: {name} |
| DELETE | /api/graphs/:name | Supprime un graphe |
| GET | /api/graphs/:g/nodes | Liste des nœuds (option ?label=Foo&limit=10) |
| POST | /api/graphs/:g/nodes | Crée un nœud — body: {label, properties} |
| GET | /api/graphs/:g/nodes/:id | Récupère un nœud par id |
| GET | /api/graphs/:g/nodes/by-name/:name | Recherche par nom (options ?label=&property=&limit=) |
| PATCH | /api/graphs/:g/nodes/:id | Met à jour les propriétés |
| DELETE | /api/graphs/:g/nodes/:id | Supprime (DETACH) |
| GET | /api/graphs/:g/edges | Liste des relations |
| POST | /api/graphs/:g/edges | Crée une relation — body: {fromId, toId, label, properties} |
| PATCH | /api/graphs/:g/edges/:id | Met à jour les propriétés |
| DELETE | /api/graphs/:g/edges/:id | Supprime la relation |
| POST | /api/graphs/:g/cypher | Cypher libre — body: {query, params, columns} |