philips / grpc-gateway-example

Home Page:https://coreos.com/blog/gRPC-protobufs-swagger.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gRPC + REST Gateway Play

Blog post: https://coreos.com/blog/gRPC-protobufs-swagger.html

To try it all out do this:

$ go get -u github.com/philips/grpc-gateway-example
$ grpc-gateway-example serve
$ grpc-gateway-example echo "my first rpc echo"
$ curl -X POST -k https://localhost:10000/v1/echo -H "Content-Type: text/plain" -d '{"value": "foo"}'
{"value":"my REST echo"}

Huge thanks to the hard work people have put into the Go gRPC bindings and gRPC to JSON Gateway

About

https://coreos.com/blog/gRPC-protobufs-swagger.html

License:Apache License 2.0


Languages

Language:Go 99.2%Language:Shell 0.8%Language:Makefile 0.0%Language:Protocol Buffer 0.0%