I have Spring Data Rest with Spring Hateoas configured, specifically Spring-Data-Mongo. Works like a charm.
Trouble is, entities are at the root of the URI.
For example, for entity Person, and assume my servlet context is abc, it would be http://localhost:8080/abc/person
I would like to have a "sub-URI" to handle these entities.
For example, http://localhost:8080/abc/rest/person
or http://localhost:8080/abc/api/person
I've looked at documentation, manuals, tutorials, and searched the internet. I can't seem to find a solution.
Does somebody know how to do this?
Also, a couple more scenarios: 1. Is it possible to have multiple URI for an entity? For example, .../person and .../people point to the same entity. 2. If I wanted to use the same URI for an entity, what is best practices for one client having access to certain methods, while another client has different access. For example, one client can only read, and another can read/write.
Finally, is there a library out there that implement Spring Security with API Keys?
Thanks in advance,