Hi,
I’m evaluating the possibility of adding rest config support for the freemarker templates.
The simplest way to expose the template list that came to mind is to use two resources,
template list and template, that would react to a path templated as follows:
/templates///
where the bits in // are all optional, so that
/templates would list the global templates,
/templates/ would list the per workspace templates
and so on.
And then the single file could be retrieved/modified/deleted via:
/templates////<file.ftl>
I’ve also considered embedding /templates under each existing resource,
but it seems that would make it more difficult to integrate since we’d have
to add links in all lists, which at the time of writing are relative flat and
made of catalog resources only.
Opinions?
Cheers
Andrea
–
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 962313
mob: +39 339 8844549
http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf