https://github.com/philips/grpc-gateway-example
https://github.com/philips/grpc-gateway-example
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/philips/grpc-gateway-example
- Owner: philips
- License: apache-2.0
- Created: 2016-02-18T22:13:30.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2019-06-23T10:02:16.000Z (about 7 years ago)
- Last Synced: 2025-03-28T08:08:49.360Z (over 1 year ago)
- Language: Go
- Homepage: https://coreos.com/blog/gRPC-protobufs-swagger.html
- Size: 870 KB
- Stars: 638
- Watchers: 21
- Forks: 113
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 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][gogrpc] and [gRPC to JSON Gateway][grpcgateway]
[gogrpc]: https://github.com/grpc/grpc-go
[grpcgateway]: https://github.com/grpc-ecosystem/grpc-gateway