Trying to utilize AngularJS's $resource
to send XML via POST to an API, I'm uncertain about how to pass the data that needs to be sent.
This is my current setup:
"Cart": $resource("http://........../api?ws_key=*********", {
ws_key: ws_key
}, {
save: {
method: "POST",
isArray: false,
headers:{
'Content-Type':'raw; charset=UTF-8'
}
}
})
If sending a simple string (xml), where exactly should it be passed?