Building ASP.NET Web API OData Services
This course covers how to use ASP.NET Web API to build data services based on the OData protocol, including OData query syntax and OData message formatting.
What you'll learn
The OData protocol is an open multiplatform standard for exposing data via REST-based HTTP services for querying and updating. The ASP.NET Web API has been extended to allow you to easily build services that enable the OData query syntax on top of whatever formatting you choose for your payloads, or to do full-blown OData with both the query language and OData-compliant formatting. This course will teach you how to implement OData query support and OData formatting for round-trip CRUD (Create-Read-Update-Delete) operations on resource collections exposed using Web API services. You will first learn some fundamentals about ASP.NET Web API services, REST, and OData. Then you will learn about OData query syntax and how to easily implement it in your services. Then you will learn how to define Entity Data Models to support the full OData navigation syntaxes, and add OData formatters to turn your services into fully compliant OData services. Finally you will get some exposure to calling those services from .NET and JavaScript clients.
Table of contents
- Introduction 2m
- Exposing update operations from EntitySetControllers 6m
- Demo: Exposing update operations from EntitySetControllers 12m
- Returning OData compliant errors 2m
- Demo: Returning OData compliant errors 2m
- Updating relations through OData 2m
- Demo: Updating relations through OData 4m
- OData actions and unhandled requests 3m
- Demo: OData actions and unhandled requests 6m
- Summary 1m
- Introduction 1m
- Consuming OData from .NET Clients 2m
- Demo: Consuming OData from .NET Clients 5m
- Using Task-Based Async Pattern (TAP) with WCF Data Service Clients 3m
- Demo: Using Task-Based Async Pattern (TAP) with WCF Data Service Clients 4m
- Consuming OData from JavaScript Clients 4m
- Demo: Consuming OData from JavaScript Clients with JQuery 9m
- Demo: Consuming OData from JavaScript Clients with DataJS 2m
- Demo: Consuming OData from JavaScript Clients with Breeze 6m
- Summary 1m