In this chapter, I will briefly introduce ASP.NET Web API support for OData, the Open Data Protocol. You will learn how to do the following:
- Create a simple OData service in ASP.NET Web API (Recipe 12-1)
- Create centralized and attribute-based OData routes (Recipe 12-2)
- Work with OData Query Options (Recipe 12-3)
- Support OData functions and actions in ASP.NET Web API (Recipe 12-4)
12-1. Creating OData Services in Web API
You would like to create an OData service using ASP.NET Web API.
The easiest way to get started with OData in Web API is to use the ASP.NET scaffolder to generate OData controllers for you. To ...