3 ms·
Conditional requests are the way to go to be more transparent to clients, but the server implementation can _test_ values prior to patching the resource. For ex
by bruth 14y ago
Conditional requests are the way to go to be more transparent to clients, but the server implementation can _test_ values prior to patching the resource. For example, the JSON Patch spec has a "test" operation: http://tools.ietf.org/html/draft-ietf-appsawg-json-patch-02#section-4.6 http://tools.ietf.org/html/draft-ietf-appsawg-json-patch-02#... so you could accept the same patch, but simply test if the resource is up-to-date before patching it.