spring-projects / spring-projects/spring-data-rest
Support_links for projections [DATAREST-809]
@odrotbohm is already working on this.
Since Dec 31, 2020.
- Dominant language
- Java
- Stars
- 958
- Forks
- 568
- PR merge metrics
- No merged PRs in 30d
Description
Johannes Schmidt opened DATAREST-809 and commented
Projection is a great feature to provide custom views von resources and to reduce REST calls to resolve depended resources. In our project, we heavily use projections to optimize our user interface performance.
Today, if a resource has links to other resources, these resources can be resolved directly using a projection. BUT, the links of that embedded resources are not rendered. Oliver Gierke already described a solution at https://gist.github.com/olivergierke/bd204f35c98b5e2b8d5e#file-after-json. This is exactly the behaviour we need.
That topic was already addressed by issue DATAREST-464, but it is still not resolved.
Summary: Is it possible to render the links of an embedded resource in a projection directly in the definition scope of that embedded resource?
Referenced from: commits https://github.com/spring-projects/spring-data-rest/commit/b312920d66e3c488b93be0e9c6d6b01b3df9b492, https://github.com/spring-projects/spring-data-rest/commit/70e711585a66ccbe324dd71fe34f7550fa034843, https://github.com/spring-projects/spring-data-rest/commit/16203466d9d56ed010b0959bd68a5f4d782510b5, https://github.com/spring-projects/spring-data-rest/commit/4bec3229b5fe2f5da32d9562e12a2041124725f1
1 votes, 2 watchers
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.