API:
<request-url>
Query:
chart_type = pieChart || barGraph
interval = daily || weekly || monthly
date_range = "2016-10-12,2016-10-12"
dashboard_widget_id = 1
is_current = 1 || 2
Response:
{
"chart_type" : "pieChart",
"interval" : "daily",
"date_Range" : "2016-10-12,2016-10-12",
"dashboard_widget_id" : 1
}
API:
<request-url>
Query:
from = 2016-10-11
to = 2016-10-11
interval = daily
user_id = 1
Response:
{
"total_hours_submitted": {
"total_hours_spent": "30.00"
},
"total_hours_approved": {
"total_hours_spent": "0.00"
},
"total_hours_rejected": {
"total_hours_spent": "0.00"
},
"total_hours_logged": {
"total_hours_spent": "30.00"
}
}
E.g
/api/<request-url>?from=2016-10-11&to=2016-10-11&interval=daily&user_id=1