In this repository we show an example of how to make a service expose both a REST API and a gRPC API on the same port.
This repository belongs together with an article. The focus for this example is to get it to work on the same port.
On the master branch we show an approach using the GRPC-Gateway, a project to auto-generate HTTP endpoints for gRPC protobuf definitions.
On the nogateway branch we show an alternative approach without the auto-code generation, and using CMUX, a way to share a TCP port between different protocols.