diff --git a/docs/api.rst b/docs/api.rst --- a/docs/api.rst +++ b/docs/api.rst @@ -33,7 +33,7 @@ Leaves ------ -.. http:get:: /graph/leaves/:src +.. http:get:: /leaves/:src Performs a graph traversal and returns the leaves of the subgraph rooted at the specified source node. @@ -63,7 +63,7 @@ Neighbors --------- -.. http:get:: /graph/neighbors/:src +.. http:get:: /neighbors/:src Returns node direct neighbors (linked with exactly one edge) in the graph. @@ -92,7 +92,7 @@ Walk ---- -.. http:get:: /graph/walk/:src/:dst +.. http:get:: /walk/:src/:dst Performs a graph traversal and returns the first found path from source to destination (final destination node included). @@ -129,9 +129,9 @@ Visit ----- -.. http:get:: /graph/visit/:src -.. http:get:: /graph/visit/nodes/:src -.. http:get:: /graph/visit/paths/:src +.. http:get:: /visit/:src +.. http:get:: /visit/nodes/:src +.. http:get:: /visit/paths/:src Performs a graph traversal and returns explored nodes and/or paths (in the order of the traversal). @@ -149,7 +149,7 @@ .. sourcecode:: http - GET /graph/visit/ + GET /visit/ HTTP/1.1 200 OK Content-Type: application/json @@ -178,7 +178,7 @@ .. sourcecode:: http - GET /graph/visit/nodes/ + GET /visit/nodes/ HTTP/1.1 200 OK Content-Type: application/json @@ -192,7 +192,7 @@ .. sourcecode:: http - GET /graph/visit/paths/ + GET /visit/paths/ HTTP/1.1 200 OK Content-Type: application/json @@ -213,7 +213,7 @@ Stats ----- -.. http:get:: /graph/stats +.. http:get:: /stats Returns statistics on the compressed graph.