From ef1d0e2219214e4194a41cf1012f94c2184284e9 Mon Sep 17 00:00:00 2001 From: Keith Woodlock Date: Mon, 6 May 2013 19:19:38 +0100 Subject: [PATCH] MIFOSX-336: update api docs request and response examples for loanType parameter. --- api-docs/apiLive.htm | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/api-docs/apiLive.htm b/api-docs/apiLive.htm index 422705f2e..e0cc50518 100644 --- a/api-docs/apiLive.htm +++ b/api-docs/apiLive.htm @@ -3786,9 +3786,9 @@ GET https://DomainName/mifosng-provider/api/v1/groups At present there are three type of loans are supported.
Available loan types:
    -
  1. id=1, code=individual, description: Loan given to individual member
  2. -
  3. id=2, code=group, description: Loan given to group as a whole
  4. -
  5. id=3, code=jlg, description: Joint liability group loan given to members in a group on individual basis. JLG loan can be given to one or more members in a group.
  6. +
  7. individual: Loan given to individual member
  8. +
  9. group: Loan given to group as a whole
  10. +
  11. jlg: Joint liability group loan given to members in a group on individual basis. JLG loan can be given to one or more members in a group.
@@ -3843,14 +3843,14 @@ GET https://DomainName/mifosng-provider/api/v1/groups fields are returned.

Example Requests:

-
loans/template?clientId=1
+
loans/template?templateType=individual&clientId=1


-
loans/template?clientId=1&productId=1
+
loans/template?templateType=individual&clientId=1&productId=1
-GET https://DomainName/api/v1/loans/template?clientId=1 +GET https://DomainName/api/v1/loans/template?templateType=individual&clientId=1 { @@ -3873,7 +3873,7 @@ GET https://DomainName/api/v1/loans/template?clientId=1 } -GET https://DomainName/api/v1/loans/template?clientId=1&productId=1 +GET https://DomainName/api/v1/loans/template?templateType=individual&clientId=1&productId=1 { @@ -4123,8 +4123,7 @@ GET https://DomainName/api/v1/loans/template?clientId=1&productId=1

Retrieve a Loan

- Note: template=true parameter doesn't apply to this - resource. + Note: template=true parameter doesn't apply to this resource.

Arguments
@@ -4200,6 +4199,11 @@ GET https://DomainName/api/v1/loans/{loanId} "loanPurposeName": "option.HousingImprovement", "loanOfficerId": 2, "loanOfficerName": "LoanOfficer, Kampala", + "loanType": { + "id": 1, + "code": "loanType.individual", + "value": "Individual" + }, "currency": { "code": "UGX", "name": "Uganda Shilling", @@ -4493,7 +4497,7 @@ Request Body: clientId, productId, principal, loanTermFrequency, - loanTermFrequencyType, numberOfRepayments, repaymentEvery, + loanTermFrequencyType, loanType, numberOfRepayments, repaymentEvery, repaymentFrequencyType, interestRatePerPeriod, amortizationType, interestType, interestCalculationPeriodType, transactionProcessingStrategyId, @@ -4517,6 +4521,7 @@ Request Body: "principal": "100,000.00", "loanTermFrequency": 12, "loanTermFrequencyType": 2, + "loanType": "individual" "numberOfRepayments": 12, "repaymentEvery": 1, "repaymentFrequencyType": 2,