-
Notifications
You must be signed in to change notification settings - Fork 7
Chart Rest API
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.
Basic authentication is used. Provide your username & password in each request.
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"
}
}
}
]