dotarj / PartialResponse

PartialResponse provides JSON partial response (partial resource) support for ASP.NET Web API.
Other
57 stars 26 forks source link

Parameters default value is not working #1

Closed code-vj closed 8 years ago

code-vj commented 8 years ago

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 commented 8 years ago

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