dotarj/PartialResponse

Do nothing after implementation

Opened this issue · 0 comments

Molgy commented

Hi,

I try to use the nugget package but after install and config with :
GlobalConfiguration.Configuration.Filters.Add(new PartialJsonActionFilter()); GlobalConfiguration.Configuration.Formatters.Clear(); GlobalConfiguration.Configuration.Formatters.Add(new PartialJsonMediaTypeFormatter() { IgnoreCase = true });

I return response with :
HttpResponseMessage ReturnResult<T>(HttpStatusCode httpStatusCode, T result) { var response = new HttpResponseMessage(httpStatusCode); response.Content = new ObjectContent<T>(result, new PartialJsonMediaTypeFormatter()); return response; }

and in url I call :
{{domain}}/api/driversapp?fields=Id

I have all data and not just the Id.

Any idea?

Thanks,