10000 Retrofit generation QueryParam problem · Issue #8 · Jaguar-dart/client · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Retrofit generation QueryParam problem #8

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

Closed

Retrofit generation QueryParam problem #8

jaumard opened this issue Aug 29, 2018 · 0 comments

Comments

@jaumard
Copy link
Contributor
jaumard commented Aug 29, 2018
@GetReq("/auth/by-token")
  Future<LoginResponse> loginWithGoogle(@QueryParam("access_token") String googleToken);

give me

Future<LoginResponse> loginWithGoogle(String googleToken) async {
    var req = base.get
        .path("/auth/by-token")
        .query("googleToken", access_token)
        .header("googleToken", access_token);
    return req.one(convert: serializers.oneFrom);
  }

Where I'm expected:

Future<LoginResponse> loginWithGoogle(String googleToken) async {
    var req = base.get
        .path("/auth/by-token")
        .query("access_token", googleToken);
    return req.one(convert: serializers.oneFrom);
  }
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
0