diff --git a/api-docs/apiLive.htm b/api-docs/apiLive.htm index bfae1e325..d39c2a141 100644 --- a/api-docs/apiLive.htm +++ b/api-docs/apiLive.htm @@ -19863,8 +19863,11 @@ GET https://DomainName/api/v1/search?query=000000111

Templates

-

Templates are for custom document generation.

-

Templates can be assigned to an entity like client or loan and be of a typ like document .

+

Templates are used for end-user features such as custom user defined document generation (AKA UGD). They are based on {{ moustache }} templates. Think of them as a sort of built-in "mail merge" functionality.

+ +

User Generated Documents (and other types of templates) can aggregate data from several Mifos X back-end API calls via mappers. Mappers can even access non-Mifos X REST services from other servers. UGDs can render such data in tables, show images, etc. TBD: Please have a look at some of the Example UGDs included in Mifos X (or the Wiki page, for now.).

+ +

Templates can be assigned to an entity like client or loan and be of a typ like document. The entity and type of a template is only there for the convenience of user agents (UIs), in order to know where to show templates for the user (i.e. which tab). The Template Engine back-end runner does not actually need this metadata.

@@ -19963,7 +19966,7 @@ GET https://DomainName/api/v1/templates/template "name": "Test", "entity": "loan", "type": "Document", - "text": "This is a text with a {{mustache.tag}} ", + "text": "This is a loan for {{loan.clientName}}", "mappers": [ { "mapperorder": 0, @@ -20007,7 +20010,7 @@ Request Body: "name": "Test", "entity": "loan", "type": "Document", - "text": "This is a text with a {{mustache.tag}} ", + "text": "This is a loan for {{loan.clientName}}", "mappers": [ { "mapperorder": 0, @@ -20078,7 +20081,7 @@ GET https://DomainName/api/v1/templates "name": "Test", "entity": "loan", "type": "Document", - "text": "This is a text with a {{mustache.tag}} ", + "text": "This is a loan for {{loan.clientName}}", "mappers": [ { "mapperorder": 0, @@ -20111,7 +20114,7 @@ GET https://DomainName/api/v1/templates/{Id} "name": "Test", "entity": "loan", "type": "Document", - "text": "This is a text with a {{mustache.tag}} ", + "text": "This is a loan for {{loan.clientName}}", "mappers": [ { "mapperorder": 0, @@ -20144,7 +20147,7 @@ Request Body: "name": "Test", "entity": "loan", "type": "Document", - "text": "This is a text with a {{mustache.tag}} ", + "text": "This is a loan for {{loan.clientName}}", "mappers": [ { "mapperorder": 0,
Field Descriptions