I have a rest style web-page with many WCF services. I would like to keep the REST architecture through the service url's...I am really now sure how to do this.
I currently have 2 services, one for ItemA and one for ItemB. ItemA is a container for a bunch of ItemB elements....
You could think of ItemA as a Container (which there are many types), and ItemB as the indivigual objects within a container.
So now, I want to may my Services to this style, so in order to get my ItemA's(Containers), it's simple....
I would do something like the following.... RouteTable.Routes.Add(new ServiceRoute(string.format("ItemA.svc", ItemA);
But now the problem is when I need to define the RouteTables for ItemB, because it needs to be of the following...
I have no clue how to define a variable path for a ServiceRoute.
I am also not sure how I would go about overriding the behaviour of ServiceRoute.
Anyone have some idea's?