[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mifos-developer
Subject:    Re: [Mifos-developer] Some Points Regarding MifosX API
From:       Vishwas Babu <vishwasbabuaj () gmail ! com>
Date:       2014-05-30 15:41:24
Message-ID: CACqpLwK3s=QB_duRgDf47eXfGBW1_eJrnzkUJe24Fc6razsBdQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


>>1. Why does Mifos API return 5000 in Response where Amounts are Involved
instead of 5000.00 or 5000.0

The API's do not do any ad-hoc decimalization. The number of places after
decimal, formatting etc vary based on the locale. It is the responsibility
of the Client apps to format the same is the manner suited for the
particular locale (as done in the community -app)


>>2. When I call savingsAccount/{id}?associations=transactions for an
account in which no Withdrawal has been made,
Yes, it looks like the services return the value as NULL and the api's are
configured to strip out any null value json elements. Please go ahead and
raise the same in Jira (or even better fix it :) )


Regards,
Vishwas





On 29 May 2014 13:44, Ishan Khanna <ishan1604@gmail.com> wrote:

> Hi @Vishwas @Nayan
>
> I'd like to know
>
> 1. Why does Mifos API return 5000 in Response where Amounts are Involved
> instead of 5000.00 or 5000.0
>
> 2. When I call savingsAccount/{id}?associations=transactions for an
> account in which no Withdrawal has been made, I don't see TotalWithdrawals
> as a part of the response. Why is it so?
>
> Shouldn't the API Return 0.00 with that Field?
>
> Thanks
>
>
>
>
> --
> Ishan Khanna
> +91-9811934313
> Skype: boilingstocks
>
>
>
> ------------------------------------------------------------------------------
> Time is money. Stop wasting it! Get your web API in 5 minutes.
> www.restlet.com/download
> http://p.sf.net/sfu/restlet
> Mifos-developer mailing list
> mifos-developer@lists.sourceforge.net
> Unsubscribe or change settings at:
> https://lists.sourceforge.net/lists/listinfo/mifos-developer
>

[Attachment #5 (text/html)]

<div dir="ltr">&gt;&gt;<span \
style="font-family:arial,sans-serif;font-size:12.727272033691406px">1. Why does Mifos \
API return 5000 in Response where Amounts are Involved instead of 5000.00 or \
5000.0</span><div><font face="arial, sans-serif"><br> </font><div><span \
style="font-family:arial,sans-serif;font-size:12.727272033691406px">The API&#39;s do \
not do any ad-hoc decimalization. The number of places after decimal, formatting etc \
vary based on the locale. It is the responsibility of the Client apps to format the \
same is the manner suited for the particular locale (as done in the community \
-app)</span></div> </div><div><span \
style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></span></div><div><span \
style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></span></div><div><span \
style="font-family:arial,sans-serif;font-size:12.727272033691406px">&gt;&gt;</span><font \
face="arial, sans-serif">2. </font><span \
style="font-size:12.727272033691406px;font-family:arial,sans-serif">When I call \
savingsAccount/{id}?</span><span \
style="font-size:12.727272033691406px;font-family:arial,sans-serif">associations=transactions \
for an account in which no Withdrawal has been made,</span></div> <div><font \
face="arial, sans-serif">Yes, it looks like the services return the value as NULL and \
the api&#39;s are configured to strip out any null value json elements. Please go \
ahead and raise the same in Jira (or even better fix it :) )</font></div> <div><font \
face="arial, sans-serif"><br></font></div><div><font face="arial, \
sans-serif"><br></font></div><div><font face="arial, \
sans-serif">Regards,</font></div><div><font face="arial, \
sans-serif">Vishwas</font></div><div> <span \
style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></span></div><div><span \
style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></span></div><div><span \
style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br> \
</span></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 29 \
May 2014 13:44, Ishan Khanna <span dir="ltr">&lt;<a href="mailto:ishan1604@gmail.com" \
target="_blank">ishan1604@gmail.com</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">Hi @Vishwas @Nayan<div><br></div><div>I&#39;d \
like to know  </div><div><br></div><div>1. Why does Mifos API return 5000 in Response \
where Amounts are Involved instead of 5000.00 or 5000.0</div> <div><br></div>
<div>2. When I call savingsAccount/{id}?associations=transactions for an account in \
which no Withdrawal has been made, I don&#39;t see TotalWithdrawals as a part of the \
response. Why is it so?<br><br>Shouldn&#39;t the API Return 0.00 with that \
Field?</div>

<div><br></div><div>Thanks   <span class="HOEnZb"><font \
color="#888888"><br><div><br></div><div><br></div><div><br \
clear="all"><div><br></div>-- <br><div dir="ltr">Ishan Khanna<div><a \
href="tel:%2B91-9811934313" value="+919811934313" \
target="_blank">+91-9811934313</a></div> <div>Skype: \
boilingstocks<br><br></div></div> </div></font></span></div></div>
<br>------------------------------------------------------------------------------<br>
 Time is money. Stop wasting it! Get your web API in 5 minutes.<br>
<a href="http://www.restlet.com/download" \
target="_blank">www.restlet.com/download</a><br> <a \
href="http://p.sf.net/sfu/restlet" \
target="_blank">http://p.sf.net/sfu/restlet</a><br>Mifos-developer mailing list<br> \
<a href="mailto:mifos-developer@lists.sourceforge.net">mifos-developer@lists.sourceforge.net</a><br>
 Unsubscribe or change settings at:<br>
<a href="https://lists.sourceforge.net/lists/listinfo/mifos-developer" \
target="_blank">https://lists.sourceforge.net/lists/listinfo/mifos-developer</a><br></blockquote></div><br></div>




------------------------------------------------------------------------------
Time is money. Stop wasting it! Get your web API in 5 minutes.
www.restlet.com/download
http://p.sf.net/sfu/restlet

Mifos-developer mailing list
mifos-developer@lists.sourceforge.net
Unsubscribe or change settings at:
https://lists.sourceforge.net/lists/listinfo/mifos-developer

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic