neo4j/community — pull request #714 by miaoski (2012-07-17 11:32:20+00:00)
Title: Fix issue #670 by putting "indexed" URI into locations

*Warning* Untested code.

After careful inspection, I think the best way to fix issue #670 is to do locations.put().
201 created always comes with "Location" header and 200 OK should not do.
Therefore, it is not reasonable to hack the returned value of IndexedEntityRepresentation.
Furthermore, there is selfUri().putTo( serializer, "indexed" ) in repr/IndexedEntityRepresentation.java.
It should be reasonable to fetch body.indexed and put it into locations list.

Thanks.