Page: CTP list
v.5 by Sergey Chernov
2019-11-21 11:11
2019-11-21 11:11
GET list of available templates
GET <base_path>
retuns the common response with list of templates like:
{
providerId: "Universa Superbank",
providerAddress: "<some universa address>",
KISS: "Universa Superbank",
templates: [
{
group: "loan contracts",
description: "contracts that let universa lend conctracts to others",
contracts: [
{
name: "simple loan",
description: "allow lend some universa contract with a given interest rate",
id: "simple_loan"
},
{
name: "secured loan",
description: "allow lend some universa contract with a given interest rate with guaranty (pledge)",
id: "secured_loan"
}
]
}
// there could be more groups
]
};
See KISS for more on it. The client should then show list of the templates in UI.