document how to pass payload from file, fixes #279

This commit is contained in:
Dominik Dorn 2022-01-25 14:34:09 +01:00 committed by GitHub
parent ae7473c7a7
commit ec3c70454f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -146,6 +146,12 @@ grpcurl -d @ grpc.server.com:443 my.custom.server.Service/Method <<EOM
EOM EOM
``` ```
Sometimes it might be necessary to read the payload from a file. This worked for some users:
```shell
grpcurl -d "$(cat my.json)" grpc.server.com:443 my.custom.server.Service/Method
```
### Listing Services ### Listing Services
To list all services exposed by a server, use the "list" verb. When using `.proto` source To list all services exposed by a server, use the "list" verb. When using `.proto` source
or protoset files instead of server reflection, this lists all services defined in the or protoset files instead of server reflection, this lists all services defined in the