Example Traversal API finding the first shortest path to a node with a specific label
-
Build it:
mvn clean package
-
Copy target/path_to_label-1.0.jar to the plugins/ directory of your Neo4j server.
-
Configure Neo4j by adding a line to conf/neo4j-server.properties:
org.neo4j.server.thirdparty_jaxrs_classes=com.maxdemarzi=/v1
-
Start Neo4j server.
-
Check that it is installed correctly over HTTP:
:GET /v1/service/helloworld
-
Try the extension:
:GET /v1/service/path_to/{Label}/from/{node_id}" :GET /v1/service/path_to/{Label}/from/{node_id}?direction=incoming" :GET /v1/service/path_to/{Label}/from/{node_id}?direction=outgoing" :GET /v1/service/path_to/{Label}/from/{node_id}?depth=5" :GET /v1/service/path_to/{Label}/from/{node_id}?direction=outgoing&depth=5"