Skip to Main Content
ASP.NET Web API 2 Recipes: A Problem Solution Approach
book

ASP.NET Web API 2 Recipes: A Problem Solution Approach

by Filip Wojcieszyn
August 2014
Intermediate to advanced content levelIntermediate to advanced
408 pages
9h 54m
English
Apress
Content preview from ASP.NET Web API 2 Recipes: A Problem Solution Approach

CHAPTER 12

image

OData

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

Problem

You would like to create an OData service using ASP.NET Web API.

Solution

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Expert ASP.NET Web API 2 for MVC Developers

Expert ASP.NET Web API 2 for MVC Developers

Adam Freeman
Practical ASP.NET Web API

Practical ASP.NET Web API

Badrinarayanan Lakshmiraghavan
Pro ASP.NET Web API: HTTP Web Services in ASP.NET

Pro ASP.NET Web API: HTTP Web Services in ASP.NET

Tugberk Ugurlu, Alexander Zeitler, Ali Kheyrollahi

Publisher Resources

ISBN: 9781430259817Purchase book