I'm looking at using ASP.Net MVC as a platform for a REST based Service. I know WCF has built in support for REST services; however, I'm looking at returning multiple types of data depending on the request.
I would like the client to request the content type. So if they send text/html for example I would render my model into Html, if they request text/xml it would return xml. We could also do JSON.
Does anyone see any issues with this?
Not using WCF could increase the complexity of the client when calling the service since they won't be able to auto-generate a proxy; however, in my case, the clients will be either browser requesting html, or java client libraries processing the xml.
Since were not using WCF we need to secure the service; however, I'm thinking we can do this using forms authentication.
The benefit of this is that no matter what type of data the client is requesting it is all going through the same controllers / models etc...