how to create a java rest api instance of GraphDatabaseService.

269 views
Skip to first unread message

divyanshu das

unread,
Oct 13, 2012, 2:28:46 AM10/13/12
to ne...@googlegroups.com
I am using neo4j-java-rest-binding and neo4j 1.6.1 community edition.

I need to know, how to create a java-rest-api binding  instance for GraphDatabaseService?

for embedded api, we define it like this
 GraphDatabaseService graphDb = new EmbeddedGraphDatabase( "var/graphDb" );

What should be the equivalent code for java rest api?

Michael Hunger

unread,
Oct 13, 2012, 4:18:56 AM10/13/12
to ne...@googlegroups.com
new RestGraphDatabase(url) or new RestGraphDatabase(url, user, pass)

Michael

--
 
 

divyanshu das

unread,
Oct 13, 2012, 5:50:37 AM10/13/12
to ne...@googlegroups.com
Thanks michael. Its working !
Reply all
Reply to author
Forward
0 new messages