HI Christoph,
Thank you for helping.
I might not been explicit with the problem.
In the GET method of the ROUTE I have the following custom response schema for OK 200:
{
"title": "GanttTasksCollection",
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"title": "GanttTasks",
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"start_date": {
"type": "string",
"format": "date-time"
},
"text": {
"type": "string"
},
"progress": {
"type": "number"
},
"duration": {
"type": "integer"
},
"parent": {
"type": "integer"
},
"sortorder": {
"type": "integer"
},
"priority": {
"type": "integer"
},
"type": {
"type": "string"
},
"readonly": {
"type": "integer"
},
"editable": {
"type": "integer"
},
"open": {
"type": "integer"
},
"obraid": {
"type": "integer"
}
}
}
}
}
}
And I´m retriving this :
{
"totalResults": 3,
"itemsPerPage": 16,
"startIndex": 0,
"entry": [
{
"id": "1",
"start_date": "2020-05-20 08:00",
"text": "Tarefa #1",
"progress": "0.0",
"duration": "1",
"parent": "0",
"sortorder": "1",
"priority": null,
"type": "project",
"readonly": null,
"editable": null,
"open": null,
"ObraID": "1"
},
{
"id": "2",
"start_date": "2020-05-20 08:00",
"text": "Tarefa #1.1",
"progress": "0.3",
"duration": "24",
"parent": "1",
"sortorder": "1",
"priority": null,
"type": "task",
"readonly": null,
"editable": null,
"open": null,
"ObraID": "1"
},
{
"id": "4",
"start_date": "2020-05-22 08:00",
"text": "Tarefa #2",
"progress": "0.9",
"duration": "12",
"parent": "0",
"sortorder": "2",
"priority": null,
"type": "task",
"readonly": null,
"editable": null,
"open": null,
"ObraID": "1"
}
]
}
Best regards
Mauro Madeira