News for hackers. Stuff that matters.
Re:Best practices for REST API design (2020) by lukeramsden on Monday February 22, 2021 @11:52AM (#26226698)
It's likely more of an issue if you're wanting to fetch lots of nested data in one request, but only a few specific fields of what could be an extremely large object, like say the just the names and profile picture URIs for a large set of users that have interacted with the object your fetching. This is particularly relevant to social media, such as Facebook.
Re:Best practices for REST API design (2020) by treve on Monday February 22, 2021 @12:09PM (#26226997)
For the cases we've hit, it made sense to do a more specialized endpoint (or media type) than to create a universal way to let clients pick that fields they want.

This works way nicer with caches and APIs where the URI is a first class citizen.