spring-data-rest icon indicating copy to clipboard operation
spring-data-rest copied to clipboard

@RepositoryRestResource.path should allow more than one path segment [DATAREST-1520]

Open spring-projects-issues opened this issue 4 years ago • 3 comments

alienisty opened DATAREST-1520 and commented

When creating complex applications, it is useful to group paths related to common concerns, contexts, etc.

Say we have a module "foo" and I want to group all the resources under "foo", I should be able to specify the path as "foo/resource".

I don't see the reason for the current limitation, at least for @RepositoryRestResource


Affects: 3.3 RC2 (Neumann)

spring-projects-issues avatar May 06 '20 04:05 spring-projects-issues

I agree, this would be extremely useful, and don't understand why we need to limit ourselves to flat resources.

brodziakm avatar Mar 25 '21 05:03 brodziakm

Unfortunately that's not possible at the moment as the controllers handling the invocations use /{repository}/… as mapping segment and those are only mapped to single path segments.

odrotbohm avatar Mar 25 '21 10:03 odrotbohm

I checked old issues too, I've seen that, this feature request still up to date.

tayfunyasar avatar Apr 15 '22 22:04 tayfunyasar