Skip to content

Commit 64c2c5d

Browse files
committed
doc(main): Updated documentation
1 parent 8f76343 commit 64c2c5d

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

+20
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,24 @@ Once ready, the application will be available on:
9191

9292
If you update the [proto definition](proto/example.proto), you can run `make stubs from=proto/example.proto` to regenerate the stubs.
9393

94+
Usage examples with [gRPCurl](https://github.com/fullstorydev/grpcurl):
95+
96+
- with `ExampleService/ExampleUnary`:
97+
98+
```shell
99+
grpcurl -plaintext -d '{"text":"hello"}' localhost:50051 example.ExampleService/ExampleUnary
100+
{
101+
"text": "response from grpc-app: you sent hello"
102+
}
103+
```
104+
105+
- with `ExampleService/ExampleStreaming`:
106+
107+
```shell
108+
grpcurl -plaintext -d '{"text":"hello"}' localhost:50051 example.ExampleService/ExampleStreaming
109+
{
110+
"text": "response from grpc-app: you sent hello"
111+
}
112+
```
113+
94114
You can use any gRPC clients, for example [Postman](https://learning.postman.com/docs/sending-requests/grpc/grpc-request-interface/) or [Evans](https://github.com/ktr0731/evans).

0 commit comments

Comments
 (0)