Passing query string values #28

Closed
DamianMehers opened this Issue Jan 30, 2016 · 4 comments

Projects

None yet

2 participants

@DamianMehers
Contributor

I've found I can pass query string values by escaping the question mark:

    [UriFormat("/GetTemperatures\\?start={start}&end={end}")]
    public GetResponse GetTemperatures(string start, string end) {
      Debug.WriteLine("Received request start " + start + " end " + end);
      return new GetResponse(GetResponse.ResponseStatus.OK);
    }

Would you like a pull request to escape it in code?

@tomkuijsten
Owner

That's an interesting approach ☺. Pull request would be nice.

@DamianMehers
Contributor
@tomkuijsten
Owner

Thanks. I've just been sick a couple of days, I'll merge this soon.

@tomkuijsten tomkuijsten added the feature label Feb 8, 2016
@tomkuijsten tomkuijsten self-assigned this Feb 8, 2016
@tomkuijsten
Owner

Merged you're request. Might need some more rework to fully support all query parameter options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment