3 ms·
Ahh, WebAPI. The thing that MVC should have been, but still falls short. Promoted as an 'API' despite the fact it does the same thing as MVC, only slightly bett
by philliphaydon 13y ago
Ahh, WebAPI. The thing that MVC should have been, but still falls short. Promoted as an 'API' despite the fact it does the same thing as MVC, only slightly better.
Guess what, your website is an API, it just happens to return text/html instead of some other format you specify. If you use MVC and WebAPI, you're doing it wrong.
Also...
http://weblogs.asp.net/shijuvarghese/archive/2013/07/30/writing-unit-tests-for-asp-net-web-api-controller.aspx http://weblogs.asp.net/shijuvarghese/archive/2013/07/30/writ...
vs
http://www.marcusoft.net/2013/01/NancyTesting3.html http://www.marcusoft.net/2013/01/NancyTesting3.html
Sums up WebAPI for me.
- edwinnathaniel 13y agoMany people develop a web-app using MVC-based framework and have a separate API endpoints using lightweight library. SpringMVC + JAX-RS1/2 RoR + Sinatra A web-app using some framework + NodeJS for API There's nothing wrong with that as you may want to have different models or different configurations (throttling or whatnot). Using MVC-based framework for your API endpoint is overkill.