3 ms·
Very common in poorly designed RESTful architectures. Hypermedia-style APIs take care of this. [0] The performance advantage of lightweight payloads to an SPA g
by fny 11y ago
Very common in poorly designed RESTful architectures. Hypermedia-style APIs take care of this. [0] The performance advantage of lightweight payloads to an SPA gets trashed by network latency otherwise.
[0]: http://jsonapi.org/ http://jsonapi.org/
- Kiro 11y agoHow would the URL for dmak's example look?
- fny 11y ago/users/1/posts?include=user,comments
- dmak 11y agoI don't think the structure of the response would be the dictating factor for a "poorly designed RESTful architecture". This response format no longer makes things RESTful because it lumps together so many different models. This format is more suited for command/presenter pattern (orchestration).