by pier25 · 8y ago · 0 comments
OTOH if the complexity is offset to the client, and you have multiple clients, then there is more complexity. No?
(assuming you have multiples types of clients)
The only difference is that in a REST world it needed to make several calls to fetch all the data (often waiting for resource references in the nth response before being able to build the (n+1)th query) whereas now it can fetch them all in a single query.
So if anything it reduces the client complexity, as well as making it much easier to extend the API to support new client requirements without having to resort to REST-style versioning.
More to be economical in API design, rather than just server load and bandwidth.