[ 
http://mifosforge.jira.com/browse/MIFOS-5299?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=72616#comment-72616
 ] 

Łukasz Babski edited comment on MIFOS-5299 at 6/25/12 5:35 AM:
---------------------------------------------------------------

New feature works properly.
~Build Date: Thu Jun 21 02:12:23 PDT 2012~
~Build Number: hudson-head-i-release-archive-16~
                
      was (Author: lbabski):
    New feature works properly.
                  
> Rework write REST API methods validation
> ----------------------------------------
>
>                 Key: MIFOS-5299
>                 URL: http://mifosforge.jira.com/browse/MIFOS-5299
>             Project: mifos
>          Issue Type: New Feature
>            Reporter: Rafal Lewandowski
>            Assignee: Michał Dudziński
>            Priority: Major
>             Fix For: Release 2.2.3
>
>
> Currently, when a write REST API method is invoked and a certain parameter is 
> not valid (e.g. missing, incorrect value) a runtime exception is thrown, 
> causing unnecessary data to be sent over the network. This should be reworked 
> to return a map with "status": "error" entry and other entries describing the 
> problem, for example:
> { "status": "error", "amount": "must be grater than 0" }
> This fix should be applied to the following REST API methods:
>    - applyCharge in LoanAccountRESTController
>    - applyCharge in CustomerRESTController
>    - applyAdjustment in SavingsAccountRESTController
>    - fullRepay in LoanAccountRESTController
>    - repay in LoanAccountRESTController
>    - applyAdjustment in LoanAccountRESTController
>    - doSavingsTrxn in SavingsAccountRESTController
>    - disburseLoan (in case when there are two Loans with amount calculated by 
> loan cycle and one of them has already been disbursed)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
http://mifosforge.jira.com/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues

Reply via email to