Hi there, if you want to let the Neo4j Server to take care of the returning and serialization of nodes, just do a managed plugin, see http://docs.neo4j.org/chunked/snapshot/server-plugins.html. Otherwise, with unmanaged extensions you are on your own regarding what you return, any String will do. For the REST API, there are the representation formats used, but you could do anything.
What reason is there for you to do an unmanaged extension when you just want to return nodes? Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - Your high performance graph database. http://startupbootcamp.org/ - Öresund - Innovation happens HERE. http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party. On Sun, Aug 21, 2011 at 5:42 PM, shlomyb <[email protected]> wrote: > Hi > > I want to add some "logic" to add/create node from graph. > So I created a Unmanaged Server plugin with a method named > "getOrCreateNode(@PathParm(id) id)" > annotated with @POST @Produces( MediaType.JSON_APPLICATION) and @Path( > "/{id}"). > > My question is how can I return a Node object ?? Should I use the JsonHelper > class?? > > Second question , Where can I find the code for creating / retrieving Nodes > using REST in Neo4J project? > > 10x. > > > > -- > View this message in context: > http://neo4j-community-discussions.438527.n3.nabble.com/Return-Node-in-an-unmanaged-server-plugin-tp3273004p3273004.html > Sent from the Neo4j Community Discussions mailing list archive at Nabble.com. > _______________________________________________ > Neo4j mailing list > [email protected] > https://lists.neo4j.org/mailman/listinfo/user > _______________________________________________ Neo4j mailing list [email protected] https://lists.neo4j.org/mailman/listinfo/user

