This page documents the final Template Service & User Generated Documents API etc. Some of this was on other related pages during development, but it's just being pulled together here. We expect this will eventually be integrated into the API Documentation (and may some end-user documentation for the UI, if there is any?) - by who & when?
...
May be our first blog post with the initial live screencast demo is of interest. TBD Related Postman Collection Scripts are here. Here are the steps used (remember to set Content-type: application/json):
1. Create first template (without Mappers): POST this to https://localhost:8443/mifosng-provider/api/v1/templates?username=mifos&password=password&tenantIdentifier=default (and note the returned resourceId):
...
User Generated Document Out-of-the-Box (OOB) Example #1: Loan Schedule table + Image
{ "name": "TestExample Loan Schedule",
"entity": "loan",
"type": "Document",
"text": "
...
", "mappers": [ { "mapperorder": 0, "mapperkey": "loan", "mappervalue": "loans/{{loanId}}?associations\u003dall\u0026tenantIdentifier\u003ddefault", "id": 42 }, { "mapperorder": 1, "mapperkey": "client", "mappervalue": "clients/{{loan.clientId}}?tenantIdentifier\u003ddefault={{tenantIdentifier}}", "id": 43 }, { "mapperorder": 2, "mapperkey": "image", "mappervalue": "clients/{{loan.clientId}}/images?tenantIdentifier\u003ddefault", "id": 44 } ], "id": 4 }