An open API service indexing awesome lists of open source software.

https://github.com/abitofhelp/helloworld-tonic-bsr

A Rust-based protobuf/gRPC example using buf.Build BSR.
https://github.com/abitofhelp/helloworld-tonic-bsr

bsr grpc protobuf rust

Last synced: 19 days ago
JSON representation

A Rust-based protobuf/gRPC example using buf.Build BSR.

Awesome Lists containing this project

README

          

# helloworld-tonic-bsr

A Rust-based protobuf/gRPC example using buf.Build BSR.

## Example grpcurl commands:

### SayHello:

grpcurl -plaintext -import-path "./proto/helloworld/v1" -proto helloworld.proto -d '{"name": "Tonic"}' '[::1]:50051'
helloworld.v1.GreeterService/SayHello

{ "message": "Hello Tonic!" }

### Describe GreeterService:

grpcurl --plaintext --import-path "./proto/helloworld/v1" -proto helloworld.proto describe helloworld.v1.GreeterService

helloworld.v1.GreeterService is a service:

service GreeterService {

rpc SayHello ( .helloworld.v1.SayHelloRequest ) returns ( .helloworld.v1.SayHelloResponse );

}