I'm trying to send some XML via POST to an API, using AngularJS's $resource, but I'm not really sure how I'm supposed to pass the data I want to send.
This is what I have currently:
"Cart": $resource("http://........../api?ws_key=*********", {
ws_key: ws_key
}, {
save: {
method: "POST",
isArray: false,
headers:{
'Content-Type':'raw; charset=UTF-8'
}
}
})
Say I want to send a simple string (xml). Where should I pass it?
No comments:
Post a Comment