by philliphaydon · 6y ago · 0 comments
So if you have consumers of your api then allowing them to pull only what they need makes sense. But for an api where you are the only consumer, it makes no sense.
To avoid repeating myself, here's a minor tweet thread from a few weeks ago: https://twitter.com/andrewingram/status/1278019358703435777
There are so many apps that go from function to rest to function.
App.Something(5) > /api/something/5 > API.Something(5)
It's OK to just need an RPC web API! Especially really verby ones where you waste time trying to turn everything into a "resource".