Skip to content
This repository has been archived by the owner on May 28, 2018. It is now read-only.

Partial update with PUT #3779

Open
kobbikobb opened this issue Feb 27, 2018 · 0 comments
Open

Partial update with PUT #3779

kobbikobb opened this issue Feb 27, 2018 · 0 comments

Comments

@kobbikobb
Copy link

I want to implement a partial update with PUT (don't suggest PATCH to me, not going to happen :P).

When using normal beans you don't differentiate between null and ascent.
Null = update the value to null
Absent = Don't update the field.

Example.
POST { "value1": "a", "value2": "b" }
PUT { "value1": "c" }
GET { "value1": "c", "value2": "b" }

POST { "value1": "a", "value2": "b" }
PUT { "value1": "c", "value2": null }
GET { "value1": "c", "value2": null }

How can I implement this with Jersey?
I would still like to use beans and not a map instead....

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant