diff --git a/APIFolder/api.htm b/APIFolder/api.htm index 8c1500267..9ed6c0be6 100644 --- a/APIFolder/api.htm +++ b/APIFolder/api.htm @@ -40,7 +40,7 @@
-The additional fields resource allows you to run and receive output from pre-defined Mifos X additional fieldsreports. +In Mifos X, any number of "Sets" of "Additional Fields" can be configured for a Mifos X database table ("Type"). +
+For example, portfolio_client is the database table that holds client data. Typically, MFI's want more client related fields than is provided by Mifos X out-of-the-box. +The MFI might add a Set called "Additional Info" containing some fields that are typically input when creating a client. They might then add another Set called "Highly Improbable Info" containing some fields that are only input in exceptional circumstances. +
++The additional fields resource allows you to retrieve and update any Additional Fields data that has been configured in Mifos X.
-The Mifos X Individual Lending client application uses a JQuery plugin called stretchydata which, itself, uses this additional fields resource to provide a pretty flexible additional fields User Interface (UI). Put a link to an example here.
@@ -328,94 +333,45 @@ The Mifos X Individual Lending client application uses a JQuery plugin called st - -- Lists the types of additional field data that has been defined in Mifox X. If an Additional Data Type has more than one Addition Data Set it will be listed the same number of times as it has Sets. -
+ ++ Lists the Sets of additional fields have been defined in Mifos X. +
-Example Request: - http://localhost:8080/mifosng-provider/api/v1/reports -
+Example Request: + http://localhost:8080/mifosng-provider/api/v1/additionalfields?type=portfolio_client +
-GET https://thedomainname/v1/reports
- {
- "columnHeaders": [
+ GET https://thedomainname/v1/additionalfields
+ {
+ "additionalFieldsSets": [
{
- "columnName": "report_id",
- "columnType": "INT",
- "columnLength": null,
- "columnDisplayType": null,
- "columnValues": []
+ "id": 1,
+ "name": "Additional Information",
+ "type": "portfolio_client"
},
{
- "columnName": "report_name",
- "columnType": "VARCHAR",
- "columnLength": null,
- "columnDisplayType": null,
- "columnValues": []
- },
- {
- "columnName": "report_type",
- "columnType": "VARCHAR",
- "columnLength": null,
- "columnDisplayType": null,
- "columnValues": []
- },
-... more "columnHeaders" entries
- ],
- "data": [
- {
- "row": [
- "29",
- "Client Listing",
- "Table",
- null,
- null,
- "5",
- null,
- "selectOfficeId"
- ]
- },
- {
- "row": [
- "42",
- "Client Listing - Additional and Unlikely",
- "Table",
- null,
- null,
- "5",
- null,
- "selectOfficeId"
- ]
- },
- {
- "row": [
- "30",
- "Client Loans Listing",
- "Table",
- null,
- null,
- "5",
- null,
- "selectOfficeId"
- ]
- },
-... more "Row" entries
+ "id": 9,
+ "name": "Highly Improbable Info",
+ "type": "portfolio_client"
+ }
]
-}
- | ' + doI18N(data.columnHeaders[i].columnName) + + ': | ' + colVal + ' | '; + } + } + extraDataViewVar += '