8000 Chart Rest API · imona/tutorial Wiki · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Emre Aydın edited this page Feb 27, 2014 · 2 revisions

Chart Rest API can be used to retrieve charts on dashborad that are configured for an app.

Authentication method

Basic authentication is used. Provide your username & password in each request.

Services

Chart Query Service

Service URL: /rest/chart/{appShortName} Method: GET
Description: Retrieves all charts for an app. Chart metadata is sent along with the data that is required to render the chart. An example response which contains data for a pie chart and a column chart is shown below:

[
    {
        "categories": [
            "Bekliyor",
            "Onaylandı",
            "Müşteri Kabul",
            "Revize",
            "Rededildi"
        ],
        "values": [
            1,
            0,
            1,
            0,
            0
        ],
        "metadata": {
            "descriptions": [
                "Teklif Statüsü",
                "Offer Table",
                null,
                null,
                null
            ],
            "chartType": "PIE",
            "xAxis": {
                "labels": [
                    "X's",
                    "X's",
                    null,
                    null,
                    null
                ]
            },
            "yAxis": {
                "labels": [
                    "Y's",
                    "Y's",
                    null,
                    null,
                    null
                ],
                "functionType": "COUNT"
            }
        }
    },
    {
        "categories": [
            "Closed Not Converted",
            "Open Not Converted",
            "Closed Converted",
            "Working Connected"
        ],
        "values": [
            0,
            0,
            0,
            0
        ],
        "metadata": {
            "descriptions": [
                "Aday - Gerçek Müşteri",
                "Lead - Real Customer",
                null,
                null,
                null
            ],
            "chartType": "COLUMN",
            "xAxis": {
                "labels": [
                    "X's",
                    "X's",
                    null,
                    null,
                    null
                ]
            },
            "yAxis": {
                "labels": [
                    "Y's",
                    "Y's",
                    null,
                    null,
                    null
                ],
                "functionType": "COUNT"
            }
        }
    }
]

l

Clone this wiki locally
0