Reputation: 31
I created a little grpc server on my machine and Im wondering how to debug array message in browser. Example: for one field message in gRPC with handler "/greeting" and "name" field I can request
localhost:7000/greeting?name=Slowpoke
In this way I can debug and see what really happens on my server.
How to do same moves with protobuf scheme like:
message NamesQuery {
repated string name = 1;
}
How does request in browser should look like?
Upvotes: 2
Views: 4840
Reputation: 31
By trial and error, I found the following solution for next scheme with INT fields for GET request.
message SomeNumbers {
repeated int list = 1;
}
This request:
localhost:7000/some-request?list=2&&list=12&&list=22
and I've got next message:
{"list":[2,12,22]}
Upvotes: 1