Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map in GET request #223

Closed
ghost opened this issue Sep 9, 2016 · 1 comment
Closed

Map in GET request #223

ghost opened this issue Sep 9, 2016 · 1 comment

Comments

@ghost
Copy link

ghost commented Sep 9, 2016

I have proto file like this:

service List {
  rpc ListBuckets(Request) returns (Reply) {
    option (google.api.http) = {
      get: "/v1/search"
    };
  }


message Request {
  map<string, string> filter = 1;
}

message Reply {
  repeated string results = 1;
}

This does not work:

localhost:8000/v1/search?filter[field]=value

How I can do request?

@yugui
Copy link
Member

yugui commented Sep 10, 2016

Thank you for your question.

The short answer is "No, you can do that. We don't have any plant to support that".
For longer answer, I have added a FAQ entry which describes a workaround. https://github.com/grpc-ecosystem/grpc-gateway/wiki/FAQ

@yugui yugui closed this as completed Sep 10, 2016
@tamalsaha tamalsaha mentioned this issue Mar 30, 2017
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant