DIGIT Specifications
PlatformUrbanHealthPublic FinanceSanitation
  • Specifications Overview
    • Standardisation Approach
  • Common Service Specs
    • Access Control
    • Analytics
    • Billing
    • Collection
    • Dashboard Analytics
    • Decision Support System Ingest
    • Document Controller
    • Employee
    • Encryption
    • Filestore
    • ID Generation
    • Inbox
    • Indexer
    • Master
    • Master Data Management
    • OTP
    • Payment Gateway
    • PDF Generation
    • URL Shortening
    • User
    • Workflow
  • Domain Service Specs
    • Attendance
    • Bank Account
    • Billing Calculator
    • Birth-Death
    • Building Plan Approval
    • Building Plan Calculator
    • Campaign
    • Campaign Delivery
    • Contracts
    • Estimates
    • eChallan
    • Facility
    • Faecal Sludge Management (FSM)
    • Fire NOC
    • Fire NOC Calculator
    • Household
    • Individual
    • Inventory
    • Land
    • Muster Roll
    • National Dashboard Ingest
    • No Objection Certificate
    • Organization
    • Planning
    • Product
    • Project
    • Property Registry
    • Property Tax Calculator
    • Public Grievance Redressal
    • Registration
    • Sewerage Connection
    • Stock
    • Supervision
    • Sync
    • Trade Licence
    • Trade Licence Calculator
    • User Events
    • Vehicle Registration
    • Vendor Registration
    • Water Connection
  • Archived-docs
    • DIGIT Urban Service Specs
      • Property Tax Service
        • Property Tax Taxonomy
        • Property Tax Data Model
        • Property Tax Service API
      • Public Grievance Redressal Service
        • Public Grievance Redressal Taxonomy
        • Public Grievance Redressal Data Model
        • Public Grievance Redressal Service API
      • Trade License Service
        • Trade License Taxonomy
        • Trade License Data Model
        • Trade License API
      • Fire NOC Service
        • Fire NOC Taxonomy
        • Fire NOC Data Model
        • Fire NOC API
      • Miscellaneous Collection Service
        • Miscellaneous Collections Taxonomy
        • Miscellaneous Collections Data Model
        • Miscellaneous Collection API
      • Online Building Plan Approval Service
        • Online Building Plan Approval Taxonomy
        • Online Building Plan Approval Data Model
        • Online Building Plan Approval Service API
      • Water & Sewerage Service
        • Water & Sewerage Taxonomy
        • Water Service Data Model
        • Sewerage Service Data Model
        • Water & Sewerage Service API
      • Birth & Death Service
        • Birth & Death Taxonomy
        • Birth & Death Data Model
        • Birth & Death Service API
    • DIGIT Public Finance Management Service Specs
      • iFIX Master Data Service API
      • Adapter Master Data Service API
      • mGramSeva iFIX Adapter Service API
      • iFIX Department Entity Service API
      • Fiscal Event API
    • DIGIT Health Service Specs
      • Health Service Data Model
      • Health Service API
    • DIGIT Sanitation Service Specs
      • Faecal Sludge Management Service
        • Faecal Sludge Management Data Model
        • Faecal Sludge Management Service API
Powered by GitBook

โ€‹All content on this page by eGov Foundation is licensed under a Creative Commons Attribution 4.0 International License.

On this page

Was this helpful?

Export as PDF
  1. Common Service Specs

Dashboard Analytics

PreviousCollectionNextDecision Support System Ingest

Last updated 1 year ago

Was this helpful?

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.

API to get the Dashboard Configuration which gives the Visualizations and Layout to paint

get

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.

Path parameters
dashboardIdstringRequired

ID of the Dashboard

Responses
200
Response for Success State of the API
application/json
400
Invalid input.
application/json
get
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"
                  }
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}
  • Dashboard Analytics Service
  • GETAPI to get the Dashboard Configuration which gives the Visualizations and Layout to paint
  • POSTGet Chart API will be responding with the Data for each visualization based on the Chart ID which has been sent

Get Chart API will be responding with the Data for each visualization based on the Chart ID which has been sent

post

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

Query parameters
contextPathstringOptional
httpMethodstring ยท enumOptionalPossible values:
locale.ISO3CountrystringOptional
locale.ISO3LanguagestringOptional
locale.countrystringOptional
locale.displayCountrystringOptional
locale.displayLanguagestringOptional
locale.displayNamestringOptional
locale.displayScriptstringOptional
locale.displayVariantstringOptional
locale.extensionKeysstring[]Optional
locale.languagestringOptional
locale.scriptstringOptional
locale.unicodeLocaleAttributesstring[]Optional
locale.unicodeLocaleKeysstring[]Optional
locale.variantstringOptional
nativeRequestobjectOptional
nativeResponseobjectOptional
notModifiedbooleanOptional
remoteUserstringOptional
securebooleanOptional
userPrincipal.namestringOptional
Header parameters
x-user-infostringOptional

x-user-info

Body
Responses
200
Response for Success State of the API
application/json
400
Invalid input.
application/json
post
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"
            }
          ]
        }
      ]
    }
  ]
}