Building a RESTful API with ASP.NET 5

Building a RESTful API with ASP.NET 5

Really cool post, with nice example. Here  is the summary:

With ASP.NET 5 and MVC 6, Microsoft have really modernized the platform. The new Startup approach with configurable middleware is more in line with the expressjs way of doing things and with no static GlobalConfiguration class the design just feels cleaner. The support for environment based configuration simplifies builds by allowing making configuration an environment concern. Both dependency injection and logging are far better supported out of the box but we still have the option of plugging our own solutions in these areas too.

The only real gripe I have with the experience of creating a RESTful API is the lack of support for JSON requests without the [FromBody] attribute.

So on balance I really like what Microsoft are doing with the new platform. It will be interesting to see what it looks like come v1.0.0 since they are already making fairly major changes since RC1, and remember, if you want to see something that isn’t supported then you can always contribute by adding a pull request.

Click here to read more.