News for hackers. Stuff that matters.
Re:Robust APIs Are Weird by nine_k on Saturday June 20, 2020 @12:21AM (#23581627)
GRPC is rather nice. It has good and well-established practices about backwards compatibility (never ever remove a field), nullability, mapping to traditional HTTP-based endpoints, inline documentation.

The downside is that you need a special tool to accesss it, a plain browser or curl won't work.

Re:Robust APIs Are Weird by opqpo on Saturday June 20, 2020 @12:36AM (#23581699)
You can use it inside a browser. Look at https://github.com/grpc/grpc-web but I agree that something like playing with curl would be impossible. I once even stumbled upon a golang project that can generates a RESTful API from your gRPC API without any modifications on your server side.
Re:Robust APIs Are Weird by divbzero on Saturday June 20, 2020 @01:16AM (#23581890)
> a golang project that generates a RESTful API from your gRPC API

You might be thinking grpc-gateway. [1]

[1]: https://github.com/grpc-ecosystem/grpc-gateway