-
-
Save subzero112233/22e7bf6e7df35f3c5dc98d1df2eec97f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo 'player_name:"Jae Crowder"' \ | |
| protoc --encode stats.GetStatsRequest ./rpc/stats/stats.proto \ | |
| curl -s --request POST \ | |
--header "Content-Type: application/protobuf" \ | |
--data-binary @- \ | |
http://localhost:8000/twirp/stats.StatsService/GetStats \ | |
| protoc --decode stats.GetStatsResponse ./rpc/stats/stats.proto |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment