fix loan accounts retrieval, json serialisation was skipping some fields preventing client app from showing what loans existed.

This commit is contained in:
Keith Woodlock
2012-08-03 00:13:27 +01:00
parent a1b9a9c8f9
commit 2bda0e8764
4 changed files with 20 additions and 1933 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -218,7 +218,8 @@ public class ClientsApiResource {
@Context final UriInfo uriInfo) {
Set<String> typicalResponseParameters = new HashSet<String>(
Arrays.asList("pendingApprovalLoans", "awaitingDisbursalLoans", "openLoans", "closedLoans")
Arrays.asList("pendingApprovalLoans", "awaitingDisbursalLoans", "openLoans", "closedLoans",
"anyLoanCount", "pendingApprovalLoanCount", "awaitingDisbursalLoanCount", "activeLoanCount", "closedLoanCount")
);
Set<String> responseParameters = ApiParameterHelper.extractFieldsForResponseIfProvided(uriInfo.getQueryParameters());