On Thu, Mar 29, 2012 at 6:32 PM, Justin Deoliveira <[email protected]>wrote:
> Nice, will be a good addition.
>
> I do think embedding under each of the existing structures would slot in
> more and correspond to how the api is structured today. Which would look
> like:
>
> /workspaces/<workspace>/templates/
> /workspaces/<workspace>/templates/<file>.ftl
> /workspaces/<workspace>/stores/<store>/templates/
> /workspaces/<workspace>/stores/<store>/templates/<file>.ftl
>
> But yeah, i see the rationale about having to update all the "collection"
> resources to add the links for the templates.
>
I guess extending the collection of resources class to cope with the
templates inclusion
would not be that bad, but that would result in new elements in the existing
json/xml representation.
Probably most clients won't care about the extra element, but what if
someone bound the
xml with jaxb or other schema oriented tool and we extend the xml under
their feet?
There is a desire to have templates being exposed on 2.1.x too.
Have we already dealt with something similar already in the past, that is,
adding new
information in the resource(s) representations?
I guess it happened implicitly whenever we added new fields in CatalogInfo
objects,
but that was done so that the new elements would appear only on trunk, while
on the stable series the extras appeared in the metadata map.
But... in this case there is no metadata map I can peruse.
Suggestions?
> Another alternative could be:
>
> /templates/workspaces/<workspace>/templates/
> /templates/workspaces/<workspace>/templates/<file>.ftl
>
Right, more in line with the normal hierarchy on the resource side
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
-------------------------------------------------------
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel