Developing RESTful APIs with gRPC-Gateway
Introduction to gRPC-Gateway gRPC-Gateway is a plugin for protoc. It works by reading a gRPC service definition and generating a reverse proxy server that translates a RESTful JSON API into gRPC. This server is generated according to the custom options in your gRPC definition. Installation and Usage Dependencies Tool Introduction Installation protobuf Command line tool for protocol buffer compilation http://google.github.io/proto-lens/installing-protoc.html protoc-gen-go Generates .go files from proto files https://grpc.io/docs/languages/go/quickstart/ protoc-gen-go-grpc Generates gRPC related .go files from proto files https://grpc.io/docs/languages/go/quickstart/ protoc-gen-grpc-gateway Generates gRPC-gateway related .go files from proto files https://github.com/grpc-ecosystem/grpc-gateway#installation protoc-gen-openapiv2 Generates parameter files required for Swagger documentation from proto files https://github.com/grpc-ecosystem/grpc-gateway#installation buf Protobuf management tool, optional, simplifies command line operations and protobuf file management https://docs.buf.build/installation Steps Write buf configuration buf.gen.yaml ...