If you're willing to add massive technical overhead to solve this, then GraphQL may be worth a shot.
If you're willing to add massive technical overhead to solve this, then GraphQL may be worth a shot.
It also doesn’t make network requests faster. I would argue it’s slower when returning the same data between a rest api and graphql. The difference is you don’t do unnecessary joins when you don’t need data. (Since most graphql apis are in front of a relational database anyway)
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.
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".
To avoid repeating myself, here's a minor tweet thread from a few weeks ago: https://twitter.com/andrewingram/status/1278019358703435777