Golang. Adding a json body to POST request in protofile

It could be a bit tricky, and I failed to find a good example for it.

my-api.proto

Optionally, you can add the following middleware to allow an empty request body from the client as any JSON is required by grpc-ecosystem.

Similar Posts

LEAVE A COMMENT