From the course: Advanced ASP.NET Web API 2.2

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Setting up the environment

Setting up the environment

From the course: Advanced ASP.NET Web API 2.2

Start my 1-month free trial

Setting up the environment

- [Narrator] Before we set up the environment for this chapter, it's important to know that the open data protocol, or OData, is a data access protocol for the web. So, this protocol helps us keep a simple and uniform way for accessing data. But, what does this mean? Let us say we are building an API endpoint which returns all the students. Now, if we want to get a single student, what we need to do is that we need to go to our API and add one more endpoint. And let us say we want to order students by name. We need to go and add another endpoint. And so on. The same way goes for filtering, pagination, et cetera. But, by using OData, we don't need to create a single endpoint for each feature that we want to have when it comes to reading data. Because all data defines a series of system query options that can help us construct complicated queries for the resources that we want. Now, let us go to Visual Studio and set…

Contents