3 ms·
yes. to quote the rfc: There are also cases where patch formats do not need to operate from a known base-point (e.g., appending text lines to log files,
by ibotty 14y ago
yes. to quote the rfc:
There are also cases where patch formats do not need to operate from
a known base-point (e.g., appending text lines to log files, or non-
colliding rows to database tables) [...]
- scott_w 14y agoYes, I saw that. Personally, I think Post does a good enough job for that. I know it's technically supposed to create a sub-resource, but it seems to work for appending to the same resource just as well. I'm a little uncertain of the case for using Patch to append rows to a database. Surely that's a case where Post does a better job?
- rfugger 14y agoPOST would make more sense if each row is its own resource. PATCH would make more sense if the entire table is its own resource, without addressable sub-resources (rows).
- scott_w 14y agoAs far as the spec is concerned, yes I agree. On a more personal level, I'm of the opinion that Post can append to an existing resource, without adding a new resource. Allowing for this practicality in the spec would allow Patch to be only idempotent.
- ibotty 14y agothat would be nice, indeed, but seems impossible now.