I have to replicate a MVC4 WebAPI application but mine will just echo the data being sent to it, so I'm wondering if I should just go with a simpler WCF service, because MVC4 WebAPI application has lots of files. The exposed API is very simple:
public Task<HttpResponseMessage> PostData(HttpRequestMessage requestMessage)
I have three questions:
- Is it possible to get rid of all the extra .js and other files from MVC4 WebAPI, since I only need to expose an API and don't need any views?
If I were to port this to WCF, what would the signature look like?
[OperationContract] HttpResponseMessage PostData(HttpRequestMessage request)
Is it worth writing the echo service in WCF?