Adding new user report

Add a new report to the stretchy_report table in Mysql database. Please refer Mifos API documentation on how to add a new report. It can be found here



After adding above details backend will cache those data automatically by running report in every midnight. 

Retrieving cached data from front end

For one report type data can be retrieved as follows:

Request should be made as,

GET https://DomainName/api/v1/client_impact_portal/<report_type>?reportName=<report_name>&tenantIdentifier=<tenant_identifier>&pretty=true

Example requests:

https://localhost:8443/mifosng-provider/api/v1/client_impact_portal/latestReport?reportName=Number%20of%20Clients&tenantIdentifier=internaldemo&pretty=true

https://localhost:8443/mifosng-provider/api/v1/client_impact_portal/reportByDate?reportDate=2014-06-06&reportName=Outstanding%20Loans&tenantIdentifier=internaldemo&pretty=true

https://localhost:8443/mifosng-provider/api/v1/client_impact_portal/reportByDateRange?reportStartDate=2014-06-08&reportEndDate=2014-06-14&reportName=Savings%20Amount&tenantIdentifier=internaldemo&pretty=true


Results will be come as JSON responses