Dashboard Analytics
Dashboard Analytics Service
APIs for DSS analytics dashboard primarily consists of 2 APIs. The one which is used to get configuration based on which the dashboard is painted. The other one is the API which gets the data needed for the visualization to paint different graphs.
This endpoint will pass the Dashboard ID from the URL to this API and will get the Dashboard Configuration from the backend which will have the details of the Visualization Layouts which are to be designed in this Dashboard.
ID of the Dashboard
Response for Success State of the API
Invalid input.
GET /dashboard/[APIEndPoint]/getDashboardConfig/{dashboardId} HTTP/1.1
Host: dev.digit.org
Accept: */*
{
"statusInfo": {
"statusCode": "text",
"statusMessage": "text",
"errorCode": 1,
"errorMessage": "text"
},
"responseData": [
{
"name": "text",
"id": "text",
"isActive": true,
"style": "text",
"visualizations": [
{
"row": 1,
"name": "text",
"vizArray": [
{
"id": 1,
"name": "text",
"dimensions": {
"height": 1,
"width": 1
},
"vizType": "text",
"charts": [
{
"id": 1,
"name": "text",
"code": "text",
"chartType": "text",
"filter": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}
]
}
]
}
]
}
]
}
Get Chart API will be responding with the Data for each visualization based on the Chart ID which has been sent
Based on the Chart ID and the Visualization Type and the Request Dates and Filters, the API will aggregate the data and give the data which needs to be painted on Visualization Charts
x-user-info
Response for Success State of the API
Invalid input.
POST /dashboard/[APIEndPoint]/getChartV2 HTTP/1.1
Host: dev.digit.org
Content-Type: */*
Accept: */*
Content-Length: 258
{
"header": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"aggregationRequest": {
"visualizationType": "text",
"visualizationCode": "text",
"queryType": "text",
"filter": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"moduleLevel": "text",
"requestDate": {
"startDate": "text",
"endDate": "text"
}
}
}
{
"statusInfo": {
"statusCode": "text",
"statusMessage": "text",
"errorCode": 1,
"errorMessage": "text"
},
"responseData": [
{
"chartType": "text",
"chartFormat": "text",
"drillDownChartId": "text",
"filter": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"data": [
{
"headerName": "text",
"headerValue": 1,
"headerSymbol": "text",
"plots": [
{
"label": "text",
"name": "text",
"value": 1,
"symbol": "text"
}
]
}
]
}
]
}
Last updated
Was this helpful?