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

Parameters default value is not working #1

Closed
code-vj opened this issue Feb 11, 2016 · 1 comment
Closed

Parameters default value is not working #1

code-vj opened this issue Feb 11, 2016 · 1 comment

Comments

@code-vj
Copy link

code-vj commented Feb 11, 2016

I am trying to set default fields by setting default value of fields parameter, see below code, this code not working and ignoring it and returning all fields.

`[Route("")]
[HttpGet]
public HttpResponseMessage GetAllLoginThemes(string Key, string Secret, string fields = "Data(Name,Title,IsPaid)")
{

    }`
@dotarj
Copy link
Owner

dotarj commented Feb 12, 2016

PartialResponse operates on the values in the query string (HttpRequestMessage.RequestUri.Query), so adding a parameter 'fields' with default values will not work.

@dotarj dotarj closed this as completed Feb 12, 2016
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

2 participants