The Complete Guide to ASP.NET Core (.NET 5) Web API
- Description
- Curriculum
- FAQ
- Reviews
A Web API is an application programming interface for the Web. With Web API, you get access to entire features of HTTP like URIs, request/response headers, content formatting, etc.
This course will teach you all you need to know to build personal or commercial applications using Asp.Net Core (.NET 5) Web API as your development framework. You will start from just Visual Studio and build your app from the ground up.
As data storage, you will use an SQL database and Entity Framework will be used to interact with your data. You will also learn how to update database schema using Entity Framework migrations, how to add data to the database, get data from the database, update data in the database and also delete data from the database.
You will not only learn about the default features or capabilities that Asp.Net Core 5 Web API has to offer, but you will also create your custom implementations. For example, you will learn how to implement your custom Web API return type, how to build a custom exception, or even a custom middleware exception handler.
You will learn all these, step by step with hands-on practice. You will also have a lot of quizzes that will help to improve your knowledge of Web API.
Some of the topics that this course covers are:
-
Introduction to Web API
-
Building your first Asp.Net Core (.NET 5) API
-
Working with relational data
-
Controller Action return types
-
Error & Exception handling
-
Sorting, Filtering, and Paging
-
Asp.Net Core Web API Versioning
and much more…
You can find the source code of this course on my Github account: etrupja/complete-guide-to-aspnetcore-web-api
-
1Getting StartedVideo lesson
-
2Installing Asp.Net Core SDK and RuntimeVideo lesson
-
3New Web API project with Visual StudioVideo lesson
-
4Default Asp.Net Core Project FilesVideo lesson
-
5Testing the Web API Project with Postman and SwaggerVideo lesson
The popularity of Postman is well deserved, as it delivers simple to complex features for everyday users to quickly test HTTP based requests.
Swagger offers tools to validate that your API works as it should, explore new API capabilities, and allows for seamless integration with automated API testing.
-
6SummaryVideo lesson
-
7Getting StartedVideo lesson
-
8Adding a Book Model ClassVideo lesson
Entity Framework Core uses Entity Data Models (or just Models) for all database related operations.
A model is just a C# class that serves as a footprint of an SQL table.
-
9Adding Your EF Core DB ContextVideo lesson
DbContext is the most important Entity Framework class.
DbContext servers as a bridge between entity classes (C#) and database tables (SQL).
-
10Adding Your First EF Core MigrationVideo lesson
-
11Seeding Your Database With DataVideo lesson
-
12Adding Your First Web API ControllerVideo lesson
-
13Adding a New Book [HttpPost]Video lesson
✅ HTTP (Hypertext Transfer Protocol) is a method for encoding and transporting information between a client and a web server
✅ HttpPost is used to send data to a server to create/update a resource.
✅ RequestBody is used to send and receive data via the REST API
-
14Listing All Books [HttpGet]Video lesson
✅ HTTP (Hypertext Transfer Protocol) is a method for encoding and transporting information between a client and a web server
✅ [HttpGet] is used to get data from a server/database
✅ [HttpGet("{id}")] is used to get data from a Web API using a parameter that is passed with the request URL.
-
15Updating an Existing Book [HttpPut]Video lesson
-
16Deleting an Existing Book [HttpDelete]Video lesson
-
17SummaryVideo lesson
-
18Quiz - Build Your First Asp.Net Core Web APIQuiz
-
19Getting Started with Relational Data ManagementVideo lesson
-
20One-to-Many Relationships in Entity Framework CoreVideo lesson
-
21Many-to-Many Relationships in Entity Framework CoreVideo lesson
-
22Adding Author and Publisher Services to Web APIVideo lesson
-
23Adding Relational Data With [HttpPost]Video lesson
-
24Getting Authors of a Book with [HttpGet]Video lesson
-
25Getting Books of an Author with [HttpGet]Video lesson
-
26Getting Books of a Publisher including AuthorsVideo lesson
-
27Deleting Relational Data With Entity Framework CoreVideo lesson
-
28SummaryVideo lesson
-
29Introduction to Error & Exception HandlingVideo lesson
-
30HTTP Response Status CodesVideo lesson
-
31Error Handling with Try-Catch-Finally BlockVideo lesson
-
32Creating Custom Exceptions in .NET CoreVideo lesson
-
33Handling Errors Globally with the Built-In MiddlewareVideo lesson
-
34Handling Errors Globally with the Custom MiddlewareVideo lesson
-
35Summary of Error and Exception HandlingVideo lesson

External Links May Contain Affiliate Links read more