jersey
jersey copied to clipboard
Partial update with PUT
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....