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
From the course: Advanced ASP.NET Web API 2.2
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
(Locked)
Setting up the environment4m 36s
-
(Locked)
Configuring the OData endpoint3m 25s
-
(Locked)
Creating the first OData controller2m 2s
-
(Locked)
Setting up a database4m 4s
-
(Locked)
Reading entities4m 39s
-
(Locked)
Creating and reading a single entity3m 37s
-
(Locked)
Updating and deleting an entity7m 4s
-
(Locked)
-
-
-