4 ms·
Ask HN: Do you still write REST APIs?
- gregjor 5y agoYes. And I use a lot of them that other providers still write. What do you mean by “still?” Did someone write an article about how REST sucks or is broken?
- fulafel 5y agoWhat good HL tools are there that write them for you? PostgREST comes to mind.
- GianFabien 5y agoYes, but only for CRUD type access. For WebApps that have most of the business-logic on the server side, I have been using WebSockets -- pub/sub (MQTT) as well as RPC semantics. It really depends on your use-case. I used to have most of the business logic in the web client, but over time I have come to see that you can implement greater integrity by not exposing CRUD-like operations over HTTPS.
- bnajdecki 5y agoRecently, I've switched to gRPC Web. It works superbly. You have a single API definition, SDK for frontend and backend. I have even written an article about it: https://blog.gendocu.com/posts/grpc-web-on-aws/ https://blog.gendocu.com/posts/grpc-web-on-aws/