popoto.rest

This package contains the code related to REST calls.


popoto.rest.CYPHER_URL

Default REST URL used to call Neo4j server with cypher queries to execute. This property should be updated to access to your own server.
Default value is:

popoto.rest.CYPHER_URL = "http://localhost:7474/db/data/transaction/commit";

popoto.rest.AUTHORIZATION

Add this authorization property if your Neo4j server uses basic HTTP authentication. (Neo4j 2.2 or GrapheneDB) The value of this property must be "Basic <payload>", where "<payload>" is a base64 encoded string of "username:password".
Usage example:

/**
 * "btoa" is a JavaScript function that can be used to encode
 * the user and password value in base64.
 * But it is recommended to directly use the Base64 value.
 *
 * For example Base64 encoding value of "neo4j:password"
 * is "bmVvNGo6cGFzc3dvcmQ="
 */
popoto.rest.AUTHORIZATION = "Basic " + btoa("neo4j:password");