Skip to content
matteosister edited this page Nov 27, 2014 · 15 revisions

This library is inspired by a blog post by William Durand. Head over to his blog to read the long story...

TL;DR

The patch method is often misunderstood. This library tries to fix a standard to handle patch operations.

For example:

PATCH /users/1

{ "op": "data", "property": "username", "value": "new username" }

or even:

PATCH /books/1

[
  { "op": "data", "property": "title", "value": "1986" },
  { "op": "publish" }
]

how expressive! Now some insight...

Clone this wiki locally