Add Support for JSON Patch
Registered by
Betsy Luzader
Add JSON Patch support to all Designate API calls. JSON Patch is used to avoid sending a whole document when only a part has changed. We will use it in combination with the HTTP Patch method. It is described in http://
Blueprint information
- Status:
- Not started
- Approver:
- None
- Priority:
- Undefined
- Drafter:
- Betsy Luzader
- Direction:
- Needs approval
- Assignee:
- None
- Definition:
- New
- Series goal:
- None
- Implementation:
- Unknown
- Milestone target:
- None
- Started by
- Completed by
Related branches
Related bugs
Sprints
Whiteboard
Simple example
The original document
{
"baz": "qux",
"foo": "bar"
}
The patch
[
{ "op": "replace", "path": "/baz", "value": "boo" },
{ "op": "add", "path": "/hello, "value": ["world"] },
{ "op": "remove, "path": "/foo}
]
The result
{
"baz": "boo",
"hello": ["world"]
}
(?)