3 ms·
Or (for REST apis that might need concurrent updates of the same model) the most awesome "esoteric" verb, PATCH
by SEJeff 10y ago
Or (for REST apis that might need concurrent updates of the same model) the most awesome "esoteric" verb, PATCH
- Mikhail_Edoshin 10y agoLook into WebDAV and you'll find plenty :) LOCK, UNLOCK, COPY, MOVE, MKCOL, PROPFIND, PROPPATCH. And also REPORT, SEARCH, and various version-control operations.
- SEJeff 10y agoOh sure, but the context is REST apis, not WebDAV :) PATCH allows two users to update different fields on the same resource at the same time with no conflicts. Otherwise, they'd use PUT and the last update would win unless they use something (client-side) such as compare and set.