spring-projects / spring-projects/spring-data-rest
Investigate the ability to use JSON Patch on association resources [DATAREST-1459]
Open
@odrotbohm is already working on this.
Since Dec 31, 2020.
in: content-negotiation
type: enhancement
- Dominant language
- Java
- Stars
- 958
- Forks
- 568
- PR merge metrics
- No merged PRs in 30d
Description
Oliver Drotbohm opened DATAREST-1459 and commented
For collection based association resources, it might be interesting to support JSON Patch payloads to selectively remove elements from the collection.
Challenges
- The default HAL representation is not a collection in the first place but uses
_embeddedas top level key with a type based grouping to a list of nested documents. This raises the question what JSON Pointer expressions we'd have to support._embedded/users/0or rather/0as we actually operate on a list? - The only operation that'd be supported would be
removewhich is a bit unfortunate. Other operations do not really make sense as they expect full documents or individual values and we rather deal with links referencing other resources.
No further details from DATAREST-1459
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.