api docs update

This commit is contained in:
John Woodlock
2012-05-29 21:32:28 +10:00
parent e3dbf561d4
commit 53bf93468f
2 changed files with 38 additions and 18 deletions
+30 -17
View File
@@ -577,7 +577,19 @@ JSON examples:
"joinedDate" : [ 2012, 5, 29 ], "joinedDate" : [ 2012, 5, 29 ],
"allowedOffices" : [ { "allowedOffices" : [ {
"id" : 1, "id" : 1,
"name" : "change super user" "name" : "Demo MFI Head Office"
}, {
"id" : 2,
"name" : "sub branch 1"
}, {
"id" : 8,
"name" : "moi aussi"
}, {
"id" : 3,
"name" : "sub branch 2"
}, {
"id" : 4,
"name" : "sub branch 3"
} ] } ]
} }
</code> </code>
@@ -625,19 +637,23 @@ JSON examples:
</div> </div>
<div class="method-example"> <div class="method-example">
<code class="method-declaration">POST https://thedomainname/api/v1/clients</code> <code class="method-declaration">POST https://thedomainname/api/v1/clients</code>
<code class="method-request">https://localhost:8443/mifosng-provider/api/v1/clients <code class="method-request">POST https://localhost:8443/mifosng-provider/api/v1/clients
Content-Type: application/json Content-Type: application/json
Request Body: Request Body:
{ {
"officeId": 1, "officeId": 1,
"firstname": "Firstname", "firstname": "Petra",
"lastname": "Surname", "lastname": "Yton",
"externalId": null, "externalId": "786YYH7",
"dateFormat": "dd MMMM yyyy", "dateFormat": "dd MMMM yyyy",
"joiningDateFormatted": "04 March 2009" "joiningDateFormatted": "04 March 2009"
}
</code>
<code class="method-response">
{
"entityId":23
} }
</code> </code>
<code class="method-response">{ "entityId": 2}</code>
</div> </div>
</div> </div>
@@ -647,17 +663,14 @@ Request Body:
<h4>Update a Client</h4> <h4>Update a Client</h4>
</div> </div>
<div class="method-example"> <div class="method-example">
<code class="method-declaration">PUT https://thedomainname/api/v1/clients/1</code> <code class="method-declaration">PUT https://thedomainname/api/v1/clients/{clientId}</code>
<code class="method-request">PUT https://localhost:8443/mifosng-provider/api/v1/clients/1 <code class="method-request">PUT https://localhost:8443/mifosng-provider/api/v1/clients/23
Content-Type: application/json Content-Type: application/json
Request Body: Request Body:
{ {
"officeId": 1, "externalId": "786UUUYYH7",
"firstname": "Firstname", "dateFormat": "dd MMMM yyyy",
"lastname": "Surname", "joiningDateFormatted": "09 June 2006"
"externalId": null,
"dateFormat": "dd MMMM yyyy",
"joiningDateFormatted": "04 March 2009"
} }
</code> </code>
<code class="method-response">{ "entityId": 2}</code> <code class="method-response">{ "entityId": 2}</code>
+7
View File
@@ -9,6 +9,8 @@ new loan template ... is it 2 templates... one to pick product... and 2nd to ret
Lost permissions again... restore fixed it up... must be some prob with permissions/roles maintenance Lost permissions again... restore fixed it up... must be some prob with permissions/roles maintenance
also, maybe I should be using a user that has everything but role admin. also, maybe I should be using a user that has everything but role admin.
go thru questions over mandatory fields
also about formation numbers with locale... can i put a dodgey one in and mess up data unknowingly?
Permissions Permissions
groupType in or out? groupType in or out?
@@ -24,4 +26,9 @@ Create - currencyDigitsAfterDecimal is it needed? (maybe customising digits afte
is locale saved? is locale saved?
principal is later called principalMoney principal is later called principalMoney
Clients
displayName, externalId, maxJoinedOnOffsetFromToday
joinedDateFormatted still there,
update doesn't work if officeId not there.