Last post Apr 28, 2009 04:50 PM by James Osborne
Apr 24, 2009 06:17 PM|alfredgoldberg|LINK
I find that the Rest Starter Kit Collections Template makes it a breeze to expose CRUD operations around a single resource collection. However, how do I use the Rest Starter Kit to expose multiple collections of resources. I think the answer is around URI
templates but I don't know what I need to do.
Apr 28, 2009 02:33 PM|James Osborne|LINK
Can't you just nest the collections? Have a collection of collections. Then you would use the UriTemplate something like this:
Apr 28, 2009 03:27 PM|alfredgoldberg|LINK
Could you explain using the templates to accomplish this? If I completely roll my own RESTful service I can accomplish what I need. However, since the Templates are supposed to make things easier, I would prefer to use them. The templates are ridicuoulsy
easy to use when creating a single resource collection.
Apr 28, 2009 04:42 PM|James Osborne|LINK
We haven't written a template that builds a service with multiple collections, but I think it shouldn't be too difficult to start with the collections template and start modifying by hand from there. Of course, it will be more difficult than applying a
template directly. I've engaged the dev and pm team on this to find out the easiest way to use the templates to make a service as you suggest.
Apr 28, 2009 04:50 PM|James Osborne|LINK
Have a look at the AtomPub template, which supports mulitple collections.
(And ignore what I said about not having a template that supports multiple collections. :))