2 ms·
> Any set of best practices are opinionated. "Best practices" are supposed to work sensibly in most cases. REST only works in a small subset (read/create/delet
by dozzie 10y ago
> Any set of best practices are opinionated.
"Best practices" are supposed to work sensibly in most cases. REST only works
in a small subset (read/create/delete and nothing more), other cases being
stuffed collectively under HTTP POST umbrella, so you need some RPC protocol
anyway. This is very far from working sensibly.
- zo1 10y agoI agree. A lot of "normal" operations that need to be implemented usually perform actions to different tables/entities. So, the accepted "REST" way of doing things forces you to either move your combination/"atomicity" logic to the frontend, or to call other REST actions from the first rest call itself. Even then, that specific call is not linked to an entity, but stands on its own.