when I send the post request to my Rest service it finds null values in the body. Do Anyone see what mistake it could be?
function execute_postNewUser(tempo_id, tempo_date, callback){
// create the JSON object
var args = {
data : {
'id' : tempo_id,
'date' : tempo_date
},
headers : {"Content-Type": "application/json"}
};
console.log('JSON OBJECT ' + args.data);
client.post('http://localhost:49952/api/values', args, function(data,response){
console.log(data);
console.log(response);
});
}
Here is a capture of the powershell
Data should be the tempo_id value and the tempo_date value, but the args.data just give me [Object, Object].
The Rest service is functionnal but receives only Null data from that request.