3 ms·
I'll defend REST's utility for simple data retrieval. If I just need a paginated list of comments on a video, being able to quickly hit /video/1093/comments an
by michaelchisari 9y ago
I'll defend REST's utility for simple data retrieval. If I just need a paginated list of comments on a video, being able to quickly hit /video/1093/comments and get that list back is really nice.
More complex use cases, and specifically non-idempotent operations, is where I find REST doesn't hold up as well as RPC.
- naasking 9y ago> If I just need a paginated list of comments on a video, being able to quickly hit /video/1093/comments and get that list back is really nice. REST isn't about human-readable URLs. The link to the comments should have been part of the representation returned for /video/1093 (typically JSON these days, so a "comments" property of the object).