I’m evaluating setting up a REST system using WCF against using MVC (which I currently have). I’ve got it running but would like to be able to replicate some functionality that I get with MVC.
That is, I need to be able to specify the WCF equivalent of a ‘default action’. Whilst service route has a defaults property, I’ve not found any docs on what to set in here (assuming that it is even used in WCF).
The next step, that I can see, would be to write my own service host factory and have a custom attribute but that takes me one step to far (potentially anyway) as I’m already using Autofac to DI the service dependencies.
Is a default ‘operation contract’ possible with REST over WCF?
Creating a new project using the REST 4.0 Template includes the following:
The /service1/help screen then lists the following:
So the default ‘action’ is that specified with an empty UriTemplate.