Chapter 2. Extending the ASP.NET Web API

The previous chapter was an introduction to the building blocks of a Web API. We discussed how easy it is to create and deploy an ASP.NET Web API using the tools available in Microsoft Visual Studio and Microsoft Azure. In this chapter, we look at some of the features provided by the ASP.NET Web API framework that allow us to customize the Web API pipeline and solve real-world problems.

Attribute routing

In Chapter 1, Getting Started with the ASP.NET Web API, we discussed HttpRoutingDispatcher and how we can define a route template in the WebApiConfig.cs file. This method is referred to as "convention-based routing". It allows developers to define multiple route templates at a global configuration level for ...

Get Building Web Services with Microsoft Azure now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.