jersey icon indicating copy to clipboard operation
jersey copied to clipboard

Partial update with PUT

Open kobbikobb opened this issue 7 years ago • 0 comments

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....

kobbikobb avatar Feb 27 '18 09:02 kobbikobb