spring-projects / spring-projects/spring-data-rest

Investigate the ability to use JSON Patch on association resources [DATAREST-1459]

Open
#1,820 0 comments 0 reactions 1 assignee View on GitHub

@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 _embedded as 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/0 or rather /0 as we actually operate on a list?
  • The only operation that'd be supported would be remove which 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.