logoalt Hacker News

anieuwland • today at 7:46 AM • 1 reply • view on HN

> REST allows you to specify which fields you want so you can drop what's not needed over the wire.

How? GET doesn't formally allow you to specify what to fetch, QUERY isn't a thing yet, and building an end point for each unique use case doesn't scale well and results in a complicated API.


Replies

dolia • today at 8:21 AM

It does through query parameters. There are different implementations where you pass ?fields= , or there's also OData implementations. I don't think it's too much code to implement it.

➕ show 1 reply