I am trying to return odata as "nometadata" as listed here: JSON Light for SharePoint
I have set my headers in my factory as follows:
appServices.factory('appItems', ['$resource', function ($resource) {
return $resource("/_api/web/lists/getbytitle('Todo Task List')/Items", {},
{
'query': { method: "GET", isArray: false },
'update': { method: 'PATCH' },
'headers': { Accept: 'application/json;odata=nometadata'}
}
);
}]);
However, it does not return the nometadata option, but rather defaults to:
Key Value
Accept application/json, text/plain, */*
How can I get it to pass in the nometadata option?