On schedulerpro loading, the GET request is sended and scheduler receives data like:
{
"success": true,
"resources": {
"rows": [
{"id": "r1","name": "Mike","color": "#FF6F00"},
{"id": "r2","name": "Linda","color": "#00C853"},
{"id": "r3","name": "Don","color": "#FF6F00"}
]
},
"events": {
"rows": [
{"id":"1","resourceId": "r1","name": "Task 1","startDate": "2018-04-01T10:00:00.000Z","duration": "0.08333333333333333"},
{"id":"2","resourceId": "r1","name": "Task 2","startDate": "2018-04-01T13:00:00.000Z","endDate": "2018-04-01T14:00:00.000Z"},
{"id":"3","resourceId": "r1","name": "Task 3","startDate": "2018-04-01T14:30:00.000Z","endDate": "2018-04-01T17:00:00.000Z"}
]
}
}
a POST request is immediately send (no user update) with the payload :
{
"type":"sync",
"requestId":16010456466541,
"events":
{
"updated":
[
{"endDate":"2018-04-01T14:00:00+02:00","id":"1"},
{"duration":0.041666666666666664,"id":"2"},
{"duration":0.10416666666666667,"id":"3"}
]
}
}
My crudManager config :
crudManager: {
autoLoad: true,
autoSync: true,
transport: {
load: {
url: '/QSMOCK/api/SchedulerTestGet',
},
sync: {
url: '/QSMOCK/api/SchedulerTestPost',
}
},
},