A template represents a file with variables that will be replaced by a value upon rendering.
Templates may be associated to a platform, a distribution or an application.
The following elements are defined as part of a template representation:
{
"name" : "/etc/hosts",
"delimiter": {
"start": "${"
"end": "}",
}
}
Above delimiters imply that a variable x is denoted by ${x} in template’s content.
Templates are part of a sub-collection, below URLs are therefore relative.
files
files/{file_name}
files/{file_name}/content
Application file resources use the exact same URLs and methods. The only difference is that a resource is not defined/represented in the same way as a simple template (see application).
2016 © ComodIT. All Rights Reserved. Privacy Policy | Terms of Service