@PUT
@Produces("application/vnd.ms-excel")
The below is the angular code:
surveySvcModule.factory('exportExcelCompleteSurvey', function($resource){
return $resource('/traits/rest/US/wm/survey/generateExcelForCompleteSurvey', {}, {
exportToExcel: {method:'PUT'}
});
});
Does someone have an idea on how to define in $resource, the responseType or the contentType?
Thanks much for ur time.
Ravi