News for hackers. Stuff that matters.
Re:Ask HN: Do you still write REST APIs? by gregjor on Tuesday July 13, 2021 @03:41AM (#27818473)
Yes. 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?
Re:Ask HN: Do you still write REST APIs? by GianFabien on Tuesday July 13, 2021 @04:03AM (#27818593)
Yes, 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.

Re:Ask HN: Do you still write REST APIs? by bnajdecki on Tuesday July 13, 2021 @04:20AM (#27818660)
Recently, 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/

Re:Ask HN: Do you still write REST APIs? by fulafel on Tuesday July 13, 2021 @03:45AM (#27818493)
What good HL tools are there that write them for you? PostgREST comes to mind.