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 lists strange "profile" service in 1.2.0.M2 #1718
Comments
There are a few things going on here that are not necessarily related but I'll try to cover all of them: The
|
I tried the alps URL without the API prefix and it works. Thanks for the information on Spring Data repositories and how they're automatically exported. |
In the latest Spring Boot 1.2.0.BUILD-SNAPSHOT, Spring Data REST seems to take priority over my static files. I have a src/main/resources/static/index.html file that I've been using to serve up the homepage of my application. After a change last week, this now shows up as the the JSON I expect at the root of /api. So now I see the following at both / and /api: {
"_links" : {
"patients" : {
"href" : "http://localhost:8080/api/patients{?page,size,sort}",
"templated" : true
},
"messages" : {
"href" : "http://localhost:8080/api/messages{?page,size,sort}",
"templated" : true
},
"profile" : {
"href" : "http://localhost:8080/api/alps"
}
}
} |
I believe that's another symptom of the problem that @olivergierke described above. It's this Spring Data REST issue and should be fixed in the 2.2.1 snapshots. |
I upgraded my Spring Boot 1.1.7 app today to 1.2.0.M2 to use the rest.baseUri property. From my application.yml:
When I go to http://localhost:8080/api, I see the following:
There's a "profile" service listed that I never developed. If I try to hit its "href", it throws a 404. This doesn't happen in 1.1.7. With 1.1.7, I use a @configuration class to specify the prefix.
And the result is:
On a related note, I noticed that if I have an interface that extends PagingAndSortingRepository, it gets added to the list of APIs, regardless of whether it's annotated with @RepositoryRestResource. Is this as designed?
The text was updated successfully, but these errors were encountered: