[Optional] Build protobufs for example-grpc-server
Do it only in case if you want to update client/server stubs or descriptor binary file for grpc. Protofiles were built using buf (buf installation guide.
cd cmd/examples/grpcserver
buf generate
buf build -o gen/user/v1/user.desc
Run example-grpc-server
Run example-grpc-server
make build-example-grpc-server
./example-grpc-server
Run grpc-gateway
make build service
./grpc-rest-proxy
Send http request to grpc-gateway (example)
curl -X GET http://localhost:8080/api/user/John
Following table shows examples of tested routes patterns on grpc-gateway.