Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spring Data REST to use a multi-segment path for a repository resource [DATAREST-555] #930

Open
spring-projects-issues opened this issue May 25, 2015 · 1 comment
Assignees
Labels

Comments

@spring-projects-issues
Copy link

spring-projects-issues commented May 25, 2015

Faraj Farook opened DATAREST-555 and commented

@RepositoryRestResource(collectionResourceRel = "users", path = "system/users")
public interface UserRepository extends PagingAndSortingRepository<User, Long> {
   ...
}

this generates the following, when I goto http://localhost:8080

{
   "_links": {
   "users": {
   "href": "http://localhost:8080/system/users{?page,size,sort}",
    "templated": true
},
...

But when I goto http://localhost:8080/system/users

It gives an error

Fri May 22 17:56:37 IST 2015 There was an unexpected error (type=Not Found, status=404). No message available

Reference URL: http://stackoverflow.com/questions/30396953/how-to-customize-spring-data-rest-to-use-a-multi-segment-path-for-a-repository-r

3 votes, 5 watchers

@spring-projects-issues
Copy link
Author

spring-projects-issues commented Jun 10, 2015

Oliver Drotbohm commented

As indicated, it's unlikely we're going to support this, mostly because of our focus on hypermedia and thus the lack of relevance of actual paths as well as the complications in mapping this would cause

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants