4 ms·
Do people still design rest-ful APIs? I often find I end up needing to do RPC-like things that make the API end up as a weird hybrid. I'm on the verge of abando
by beaker52 6y ago
Do people still design rest-ful APIs? I often find I end up needing to do RPC-like things that make the API end up as a weird hybrid. I'm on the verge of abandoning the idea of trying to be rest-ful at all, so it's less incohesive.
- mattbillenstein 6y agoHonestly, prefer GraphQL -- it's more like designing a schema which you may already be doing in your database anyway. The client decides which data in what shape it fetches.
- dehrmann 6y agoIf you're designing an internal API to power a rich client app, yes. If you're designing an API for developers to interface with you SaaS, plain old HTTP is a better choice, even if it's only RESTful in a hand wavy sense.
- mattbillenstein 6y agoYeah, agree - if your product is an api, I'd have REST first, then graphql later perhaps if people are interested in that.
- Silhouette 6y agoDo people still design rest-ful APIs? For internal software, you use whatever works. For the public API of a major service? Yes, REST is definitely still around. REST or at least REST-like APIs are still almost universal in my experience.
- Jugurtha 6y agoOne of the things we insisted on building our internal ML platform was that every functionality should be accessible through an API. This is scar tissue from our many past projects that delivered value to clients, but could not easily be leveraged as building blocks to do something else, especially when you have different stacks. So now, we always strive to make everything that the platform can do possible through an API call, from scheduling a training job, to deploying a model, or invoking functionality from dynamically loaded applications, which also expose their API. "Anything you can do with point and click should be accessible with an API call." guides us.
- treve 6y agoSurprising question, as I think REST is probably the leading paradigm for public APIs. At least in terms of what people call their API. What RESTful actually is varies from person to person.
- majkinetor 6y agoYou are right - most API's are RPCish and RESTish at the same time. Apparently REST core is not enough.