Introduction

This is a API service for DaySpring Admin Dashboard.

APIs

  1. Get donation amounts in months by given year

URL /api/analysis/donations?year=:year

Method GET

URL Params Required:
year=[integer]
example: year=2015

Success Response Code: 200
Content: [{'MonthName':'Jan','Total':20000},{'MonthName':'Feb','Total':30100},{'MonthName':'Mar','Total':2850},{'MonthName':'Apr','Total':19590},{'MonthName':'May','Total':7280},{'MonthName':'Jun','Total':6925},{'MonthName':'Jul','Total':720},{'MonthName':'Aug','Total':72740},{'MonthName':'Sep','Total':2680},{'MonthName':'Oct','Total':2960},{'MonthName':'Nov','Total':4820},{'MonthName':'Dec','Total':6000}]

Error Response Code: 500 Internal Server Error
Content: {}