2010/11/2 Kiss Miklós <kissmik...@freemail.hu>

> Hello,
>
> I'm trying to write basic functionality to test the capabilities of the
> neo4j REST standalone 0.8.
> Everything seems pretty obvious so far except for adding to index.
> I always receive HTTP 400 when I try to insert something to the index.
>
> I'm sending this to the server:
>
> POST http://localhost:9999/index/node/foo/bar
> http://localhost:9999/node/10
>

It may be that you're missing quotations around the node URI (since the
server expects JSON format).

Look at http://components.neo4j.org/neo4j-rest/#Add_to_index for more
information


>
> Node 10 is an existing node. I'm assuming that "foo" is the index key
> and "bar" should be the value and the request content is the target
> node. Am I right? How should I compose the request to get it done?
>
> Thanks,
> MikKi
> _______________________________________________
> Neo4j mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>



-- 
Mattias Persson, [matt...@neotechnology.com]
Hacker, Neo Technology
www.neotechnology.com
_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to