Sample requests to the AnalyticsService service
Level: advanced
Request headers
Accept:application/json
Methods
GetDashboardViewConfig()
- Request
- Response
POST /0/rest/AnalyticsService/GetDashboardViewConfig
{
"id": "a71d5c04-dff7-4892-90e5-9e7cc2246915"
}
{
"items": [
{
"layout": {
"column": 0,
"row": 0,
"colSpan": 12,
"rowSpan": 5
},
"name": "Chart4",
"itemType": 4,
"widgetType": "Chart"
}
]
}
GetDashboardData()
- Request
- Response
POST /0/rest/AnalyticsService/GetDashboardData
{
"id": "a71d5c04-dff7-4892-90e5-9e7cc2246915",
"timeZoneOffset": 120
}
{
"items": [
{
"name": "Indicator1",
"caption": "Average time for activity",
"widgetType": "Indicator",
"style": "widget-green",
"data": 2
}
]
}
GetDashboardItemData()
- Request
- Response
POST /0/rest/AnalyticsService/GetDashboardItemData
{
"dashboardId": "a71d5c04-dff7-4892-90e5-9e7cc2246915",
"itemName": "Chart4",
"timeZoneOffset": 120
}
```js
{
"name": "Chart4",
"caption": "Invoice payment dynamics",
"widgetType": "Chart",
"chartConfig": {
"xAxisDefaultCaption": null,
"yAxisDefaultCaption": null,
"seriesConfig": [
{
"type": "column",
"style": "widget-green",
"xAxis": {
"caption": null,
"dateTimeFormat": "Month;Year"
},
"yAxis": {
"caption": "Actually paid",
"dataValueType": 6
},
"schemaName": "Invoice",
"schemaCaption": "Invoice",
"useEmptyValue": null
}
],
"orderDirection": "asc"
},
"style": "widget-green",
"data": []
}