I have a rest service that I can call in Postman
Type: Post
Header: Content-Type: application/json
Body:
{
"searchParam" :{
"from" : "2019-02-11T00:00:00Z",
"to" : "2019-02-16T00:00:00Z"
},
"filterParam":{
"deviceName":"1",
"devices":["111"],
"channels":[]
}
}
But is this the correct format for the kendo datasource for a post? (with parameters). I keep getting response errors when trying to connect.
channelData: new kendo.data.DataSource({
transport: {
read: {
url: "http://localhost:20212/api/",
type: "POST",
contentType: "application/json",
data: function() {
return {
searchParam: {
from: "2019-02-11T00:00:00Z",
to: "2019-02-15T00:00:00Z",
},
filterParam: {
deviceName: "1",
devices:
"111"],
channels: [],
}
}
}
},
}
}),