I\'m developing a component based CRUD application using Spring Data JPA and Spring Data REST. I have several components. For example system component has t
Not supported.
Generally speaking: don't focus on designing URLs. The structure of a URI must not matter to a REST client by definition:
At no time whatsoever do the server or client software need to know or understand the meaning of a URI -- they merely act as a conduit through which the creator of a resource (a human naming authority) can associate representations with the semantics identified by the URI.
(from Roy Fielding - Architectural Styles and the Design of Network-based Software Architectures - Section 6.2.4)
If you follow that criteria, you take care of choosing relation names, design the representations for the resources you expose etc.
That said, what you're looking for is currently not supported. If you think it's worthwhile adding this feature (I think it's not, due to the argument given above), feel free to open a ticket in our bug tracker.
It's probably quite tricky to implement due to the way Spring MVC mapping works and especially the combination of mapping of singular path segments and non-singular ones could cause some ambiguities. All of that makes it rather unlikely this request will get followed up on.
I think this (or: a similar) question was already answered here on stackoverflow.
Set the base uri using a custom RepositoryRestMvcConfiguration class.