Using spring data REST I have exposed a ProjectRepository that supports listing projects and performing CRUD operations on them. When I go to http://local
I had the same issue. What worked for me was:
public class ProjectsResourceProcessor implements ResourceProcessor<PagedResources<Resource<Project>>> {
private final @NonNull EntityLinks entityLinks;
@Override
public PagedResources<Resource<Project>> process(PagedResources<Resource<Project>> pagedResources) {
...
return pagedResources;
}
}
The collection resources render an instance of Resources<Resource<Project>>, not Resource<Collection<Project>>. So if you change the generic typing in your ResourceProcessor implementation accordingly that should work as you expect it.