5 ms·
Too bad the first thing people do when consuming a REST API is to put a RPC wrapper around it (or find software that with auto-gen a wrapper for them) Subconsc
by pixie_ 9y ago
Too bad the first thing people do when consuming a REST API is to put a RPC wrapper around it (or find software that with auto-gen a wrapper for them)
Subconsciously no one wants to deal with your carefully constructed REST URLs. They just want a function name and some parameters.
- speedplane 9y agoThere's nothing wrong with wrapping REST APIs, as long as you wrap them in something that makes it clear they are a rest API. There's a huge difference in call foo() and calling http.get("foo").
- sidlls 9y agoWhy does that matter? Most of the time the client doesn't care about the implementation details of the data transfer.
- nickjj 9y agoYep, this is pretty much how it always goes. A good example to me is Stripe. I've written over 10 applications that use Stripe and every single time, the first thing I did was use Stripe's official library for the languages I work out.