diff --git a/api-docs/apiLive.htm b/api-docs/apiLive.htm index 9195fe296..3da9f7d10 100644 --- a/api-docs/apiLive.htm +++ b/api-docs/apiLive.htm @@ -10254,19 +10254,6 @@ No Request Body:
The reports resource allows you to run and receive output - from pre-defined Mifos X reports. The default output is a JSON - formatted "Generic Resultset". The Generic Resultset contains - Column Heading as well as Data information. However, you can - export to CSV format by simply adding "&exportCSV=true" to the end - of your URL.
-If Pentaho reports have been pre-defined, they can also be - run through this resource. Pentaho reports can return HTML, PDF or - CSV formats.
-The Mifos X Individual Lending client application uses a - JQuery plugin called stretchyreporting which, itself, uses this - reports resource to provide a pretty flexible reporting User - Interface (UI).
Lists all reports and their parameters. If a report has more - than one parameter it will be listed the same number of times as - it has parameters.
+Lists all reports and their parameters.
-Example Requests:
+Example Request:
GET https://DomainName/api/v1/reports
-{
- "columnHeaders": [
- {
- "columnName": "report_id",
- "columnType": "INT",
- "isColumnNullable": false,
- "isColumnPrimaryKey": false,
- "columnValues": []
- },
- {
- "columnName": "report_name",
- "columnType": "VARCHAR",
- "isColumnNullable": false,
- "isColumnPrimaryKey": false,
- "columnValues": []
- },
- {
- "columnName": "report_type",
- "columnType": "VARCHAR",
- "isColumnNullable": false,
- "isColumnPrimaryKey": false,
- "columnValues": []
- },
- {
- "columnName": "report_subtype",
- "columnType": "VARCHAR",
- "isColumnNullable": false,
- "isColumnPrimaryKey": false,
- "columnValues": []
- },
- {
- "columnName": "report_category",
- "columnType": "VARCHAR",
- "isColumnNullable": false,
- "isColumnPrimaryKey": false,
- "columnValues": []
- },
- {
- "columnName": "parameter_id",
- "columnType": "INT",
- "isColumnNullable": false,
- "isColumnPrimaryKey": false,
- "columnValues": []
- },
- {
- "columnName": "report_parameter_name",
- "columnType": "VARCHAR",
- "isColumnNullable": false,
- "isColumnPrimaryKey": false,
- "columnValues": []
- },
- {
- "columnName": "parameter_name",
- "columnType": "VARCHAR",
- "isColumnNullable": false,
- "isColumnPrimaryKey": false,
- "columnValues": []
- }
- ],
- "data": [
- {
- "row": [
- "10",
- "Active Loans Portfolio Status",
- "Table",
- null,
- "Loan",
- "5",
- null,
- "OfficeIdSelectOne"
- ]
- },
- {
- "row": [
- "10",
- "Active Loans Portfolio Status",
- "Table",
- null,
- "Loan",
- "6",
- null,
- "loanOfficerIdSelectAll"
- ]
- },
- {
- "row": [
- "10",
- "Active Loans Portfolio Status",
- "Table",
- null,
- "Loan",
- "10",
- null,
- "currencyIdSelectAll"
- ]
- },
- {
- "row": [
- "10",
- "Active Loans Portfolio Status",
- "Table",
- null,
- "Loan",
- "20",
- null,
- "fundIdSelectAll"
- ]
- },
- {
- "row": [
- "10",
- "Active Loans Portfolio Status",
- "Table",
- null,
- "Loan",
- "25",
- null,
- "loanProductIdSelectAll"
- ]
- },
- {
- "row": [
- "11",
- "Active Loans Summary per Branch",
- "Table",
- null,
- "Loan Portfolio",
- "5",
- null,
- "OfficeIdSelectOne"
- ]
- },
- {
- "row": [
- "11",
- "Active Loans Summary per Branch",
- "Table",
- null,
- "Loan Portfolio",
- "10",
- null,
- "currencyIdSelectAll"
- ]
- },
- {
- "row": [
- "48",
- "Balance Sheet",
- "Pentaho",
- null,
- "Accounting",
- "5",
- "branch",
- "OfficeIdSelectOne"
- ]
- },
- {
- "row": [
- "48",
- "Balance Sheet",
- "Pentaho",
- null,
- "Accounting",
- "41",
- "date",
- "endDateSelect"
- ]
- },
- {
- "row": [
- "1",
- "Client Listing",
- "Table",
- null,
- "Client",
- "5",
- null,
- "OfficeIdSelectOne"
- ]
- },
- {
- "row": [
- "2",
- "Client Loans Listing",
- "Table",
- null,
- "Client",
- "5",
- null,
- "OfficeIdSelectOne"
- ]
- },
- {
- "row": [
- "2",
- "Client Loans Listing",
- "Table",
- null,
- "Client",
- "6",
- null,
- "loanOfficerIdSelectAll"
- ]
- },
- {
- "row": [
- "2",
- "Client Loans Listing",
- "Table",
- null,
- "Client",
- "10",
- null,
- "currencyIdSelectAll"
- ]
- },
- {
- "row": [
- "2",
- "Client Loans Listing",
- "Table",
- null,
- "Client",
- "20",
- null,
- "fundIdSelectAll"
- ]
- },
- {
- "row": [
- "2",
- "Client Loans Listing",
- "Table",
- null,
- "Client",
- "25",
- null,
- "loanProductIdSelectAll"
- ]
- },
- {
- "row": [
- "20",
- "Funds Disbursed Between Dates Summary",
- "Table",
- null,
- "Fund",
- "10",
- null,
- "currencyIdSelectAll"
- ]
- },
- {
- "row": [
- "20",
- "Funds Disbursed Between Dates Summary",
- "Table",
- null,
- "Fund",
- "20",
- null,
- "fundIdSelectAll"
- ]
- },
- {
- "row": [
- "20",
- "Funds Disbursed Between Dates Summary",
- "Table",
- null,
- "Fund",
- "40",
- null,
- "startDateSelect"
- ]
- },
- {
- "row": [
- "20",
- "Funds Disbursed Between Dates Summary",
- "Table",
- null,
- "Fund",
- "41",
- null,
- "endDateSelect"
- ]
- },
- {
- "row": [
- "21",
- "Funds Disbursed Between Dates Summary by Office",
- "Table",
- null,
- "Fund",
- "5",
- null,
- "OfficeIdSelectOne"
- ]
- },
- {
- "row": [
- "21",
- "Funds Disbursed Between Dates Summary by Office",
- "Table",
- null,
- "Fund",
- "10",
- null,
- "currencyIdSelectAll"
- ]
- },
- {
- "row": [
- "21",
- "Funds Disbursed Between Dates Summary by Office",
- "Table",
- null,
- "Fund",
- "20",
- null,
- "fundIdSelectAll"
- ]
- },
- {
- "row": [
- "21",
- "Funds Disbursed Between Dates Summary by Office",
- "Table",
- null,
- "Fund",
- "40",
- null,
- "startDateSelect"
- ]
- },
- {
- "row": [
- "21",
- "Funds Disbursed Between Dates Summary by Office",
- "Table",
- null,
- "Fund",
- "41",
- null,
- "endDateSelect"
- ]
- },
- {
- "row": [
- "49",
- "Income Statement",
- "Pentaho",
- null,
- "Accounting",
- "5",
- "branch",
- "OfficeIdSelectOne"
- ]
- },
- {
- "row": [
- "49",
- "Income Statement",
- "Pentaho",
- null,
- "Accounting",
- "40",
- "fromDate",
- "startDateSelect"
- ]
- },
- {
- "row": [
- "49",
- "Income Statement",
- "Pentaho",
- null,
- "Accounting",
- "41",
- "toDate",
- "endDateSelect"
- ]
- },
- {
- "row": [
- "5",
- "Loans Awaiting Disbursal",
- "Table",
- null,
- "Loan Portfolio",
- "5",
- null,
- "OfficeIdSelectOne"
- ]
- },
- {
- "row": [
- "5",
- "Loans Awaiting Disbursal",
- "Table",
- null,
- "Loan Portfolio",
- "6",
- null,
- "loanOfficerIdSelectAll"
- ]
- },
- {
- "row": [
- "5",
- "Loans Awaiting Disbursal",
- "Table",
- null,
- "Loan Portfolio",
- "10",
- null,
- "currencyIdSelectAll"
- ]
- },
- {
- "row": [
- "5",
- "Loans Awaiting Disbursal",
- "Table",
- null,
- "Loan Portfolio",
- "20",
- null,
- "fundIdSelectAll"
- ]
- },
- {
- "row": [
- "5",
- "Loans Awaiting Disbursal",
- "Table",
- null,
- "Loan Portfolio",
- "25",
- null,
- "loanProductIdSelectAll"
- ]
- },
- {
- "row": [
- "6",
- "Loans Awaiting Disbursal Summary",
- "Table",
- null,
- "Loan Portfolio",
- "5",
- null,
- "OfficeIdSelectOne"
- ]
- },
- {
- "row": [
- "6",
- "Loans Awaiting Disbursal Summary",
- "Table",
- null,
- "Loan Portfolio",
- "6",
- null,
- "loanOfficerIdSelectAll"
- ]
- },
- {
- "row": [
- "6",
- "Loans Awaiting Disbursal Summary",
- "Table",
- null,
- "Loan Portfolio",
- "10",
- null,
- "currencyIdSelectAll"
- ]
- },
- {
- "row": [
- "6",
- "Loans Awaiting Disbursal Summary",
- "Table",
- null,
- "Loan Portfolio",
- "20",
- null,
- "fundIdSelectAll"
- ]
- },
- {
- "row": [
- "6",
- "Loans Awaiting Disbursal Summary",
- "Table",
- null,
- "Loan Portfolio",
- "25",
- null,
- "loanProductIdSelectAll"
- ]
- },
- {
- "row": [
- "7",
- "Loans Awaiting Disbursal Summary by Month",
- "Table",
- null,
- "Loan Portfolio",
- "5",
- null,
- "OfficeIdSelectOne"
- ]
- },
- {
- "row": [
- "7",
- "Loans Awaiting Disbursal Summary by Month",
- "Table",
- null,
- "Loan Portfolio",
- "6",
- null,
- "loanOfficerIdSelectAll"
- ]
- },
- {
- "row": [
- "7",
- "Loans Awaiting Disbursal Summary by Month",
- "Table",
- null,
- "Loan Portfolio",
- "10",
- null,
- "currencyIdSelectAll"
- ]
- },
- {
- "row": [
- "7",
- "Loans Awaiting Disbursal Summary by Month",
- "Table",
- null,
- "Loan Portfolio",
- "20",
- null,
- "fundIdSelectAll"
- ]
- },
- {
- "row": [
- "7",
- "Loans Awaiting Disbursal Summary by Month",
- "Table",
- null,
- "Loan Portfolio",
- "25",
- null,
- "loanProductIdSelectAll"
- ]
- },
- {
- "row": [
- "15",
- "Portfolio at Risk",
- "Table",
- null,
- "Loan Portfolio",
- "5",
- null,
- "OfficeIdSelectOne"
- ]
- },
- {
- "row": [
- "15",
- "Portfolio at Risk",
- "Table",
- null,
- "Loan Portfolio",
- "6",
- null,
- "loanOfficerIdSelectAll"
- ]
- },
- {
- "row": [
- "15",
- "Portfolio at Risk",
- "Table",
- null,
- "Loan Portfolio",
- "10",
- null,
- "currencyIdSelectAll"
- ]
- },
- {
- "row": [
- "15",
- "Portfolio at Risk",
- "Table",
- null,
- "Loan Portfolio",
- "20",
- null,
- "fundIdSelectAll"
- ]
- },
- {
- "row": [
- "15",
- "Portfolio at Risk",
- "Table",
- null,
- "Loan Portfolio",
- "25",
- null,
- "loanProductIdSelectAll"
- ]
- },
- {
- "row": [
- "16",
- "Portfolio at Risk by Branch",
- "Table",
- null,
- "Loan Portfolio",
- "5",
- null,
- "OfficeIdSelectOne"
- ]
- },
- {
- "row": [
- "16",
- "Portfolio at Risk by Branch",
- "Table",
- null,
- "Loan Portfolio",
- "6",
- null,
- "loanOfficerIdSelectAll"
- ]
- },
- {
- "row": [
- "16",
- "Portfolio at Risk by Branch",
- "Table",
- null,
- "Loan Portfolio",
- "10",
- null,
- "currencyIdSelectAll"
- ]
- },
- {
- "row": [
- "16",
- "Portfolio at Risk by Branch",
- "Table",
- null,
- "Loan Portfolio",
- "20",
- null,
- "fundIdSelectAll"
- ]
- },
- {
- "row": [
- "16",
- "Portfolio at Risk by Branch",
- "Table",
- null,
- "Loan Portfolio",
- "25",
- null,
- "loanProductIdSelectAll"
- ]
- },
- {
- "row": [
- "50",
- "Trial Balance",
- "Pentaho",
- null,
- "Accounting",
- "5",
- "branch",
- "OfficeIdSelectOne"
- ]
- },
- {
- "row": [
- "50",
- "Trial Balance",
- "Pentaho",
- null,
- "Accounting",
- "40",
- "fromDate",
- "startDateSelect"
- ]
- },
- {
- "row": [
- "50",
- "Trial Balance",
- "Pentaho",
- null,
- "Accounting",
- "41",
- "toDate",
- "endDateSelect"
- ]
- }
+[
+ {
+ "reportId": 1,
+ "reportName": "Client Listing",
+ "reportType": "Table",
+ "reportCategory": "Client",
+ "coreReport": true,
+ "useReport": true,
+ "reportParameters": [
+ {
+ "reportParameterId": 5,
+ "parameterName": "OfficeIdSelectOne"
+ }
]
-}
-
+ },
+ {
+ "reportId": 2,
+ "reportName": "Client Loans Listing",
+ "reportType": "Table",
+ "reportCategory": "Client",
+ "coreReport": true,
+ "useReport": true,
+ "reportParameters": [
+ {
+ "reportParameterId": 5,
+ "parameterName": "OfficeIdSelectOne"
+ },
+ {
+ "reportParameterId": 6,
+ "parameterName": "loanOfficerIdSelectAll"
+ },
+ {
+ "reportParameterId": 10,
+ "parameterName": "currencyIdSelectAll"
+ },
+ {
+ "reportParameterId": 20,
+ "parameterName": "fundIdSelectAll"
+ },
+ {
+ "reportParameterId": 25,
+ "parameterName": "loanProductIdSelectAll"
+ },
+ {
+ "reportParameterId": 26,
+ "parameterName": "loanPurposeIdSelectAll"
+ }
+ ]
+ },...
+ ]
+
Runs a report and returns the report output.
+This resource allows you to run and receive output from pre-defined Mifos X reports.
+Reports can also be used to provide data for searching and workflow functionality.
++ The default output is a JSON formatted "Generic Resultset". The Generic Resultset contains + Column Heading as well as Data information. However, you can + export to CSV format by simply adding "&exportCSV=true" to the end + of your URL.
+If Pentaho reports have been pre-defined, they can also be + run through this resource. Pentaho reports can return HTML, PDF or + CSV formats.
+The Mifos X reference application uses a + JQuery plugin called stretchyreporting which, itself, uses this + reports resource to provide a pretty flexible reporting User + Interface (UI).