News for hackers. Stuff that matters.
Re:ASP.NET You're doing it Wrong. An Introduction to Nancy by philliphaydon on Wednesday August 21, 2013 @11:33AM (#6251015)
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/writ...

vs

http://www.marcusoft.net/2013/01/NancyTesting3.html

Sums up WebAPI for me.

Re:ASP.NET You're doing it Wrong. An Introduction to Nancy by edwinnathaniel on Wednesday August 21, 2013 @11:56AM (#6251189)
Many 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.