GRPC JSON is a proxy which allows HTTP API tools like Postman to interact with gRPC servers.
Configuration of the proxy and its dependencies is a three step process.
If you're using
gogo/protobuf as your protobuf backend, import the following:
go get -u github.com/jnewmano/grpc-json-proxy
Other way, you can simply use
grpc-json-proxy docker image out of the box:
docker run -p 7001:7001 jnewmano/grpc-json-proxy
Proxy Server: localhost 7001
Setup your Postman gRPC request with the following:
Inspired by Johan Brandhorst's grpc-json
If you use docker image to run grpc-json-proxy server, and want to access grpc via loopback address
127.0.0.1, you should pay attention to docker network accessibility.
127.0.0.1in MacOS and with Docker for Mac 17.12 or above.