We may earn an affiliate commission when you visit our partners.
Sameer Saini

THIS COURSE HAS BEEN UPDATED TO THE LATEST VERSION [.NET8]

The course is compatible with both versions - .NET7 & .NET8

This is a complete guide to creating ASP.NET Core Web API  using  .NET8, Entity Framework Core (EF Core), and SQL Server database.

With over 11000 student enrolments and more than 2000 5-star reviews, this course has helped students from all backgrounds to learn and implement ASP.NET core Web API.

Read more

THIS COURSE HAS BEEN UPDATED TO THE LATEST VERSION [.NET8]

The course is compatible with both versions - .NET7 & .NET8

This is a complete guide to creating ASP.NET Core Web API  using  .NET8, Entity Framework Core (EF Core), and SQL Server database.

With over 11000 student enrolments and more than 2000 5-star reviews, this course has helped students from all backgrounds to learn and implement ASP.NET core Web API.

This course is for all skill levels and best suits beginners and intermediate developers who have gained knowledge in C# and ASP.NET Web MVC and want to use their skills to learn ASP.NET Core and specifically ASP.NET Core Web API.

In this ASP.NET Core WEB API course, we will use .NET8 and create a REST WEB API.

During this course, you will gain so much experience creating ASP.NET Core APIs and endpoints and by the end, I am confident that you will gain enough practical knowledge to create your own ASP.NET Web APIs.

We will create a very engaging Web API in which we will create the regions and walks of New Zealand and we will create an ASP.NET Core Web API so that clients of this API can consume this data.

We will start with learning what are the principles of REST and understand the files that ASP.NET Core creates as part of a new project.

Then we will create and understand our domain and domain models.

Then we will go ahead and install Entity Framework Core and using EF Core migrations we will create our SQL Server Database.

We will then create controllers for our API and test them using Swagger UI.

We will also understand and implement the concepts of Domain and Data models and use clean coding techniques to build our ASP.NET CORE Web API.

We will use a famous third-party library called Automapper to map objects inside our API.

With all of this, we will go on and create CRUD operations for our Web API. We will perform Create, Read, Update, and Delete operations on our API using the Repository Pattern in ASP.NET Core API.

Then we will understand and implement Authentication and Authorization in ASP.NET CORE Web APIS using JWT tokens and see how we can generate JWT tokens using our API (Server) so that we can Authenticate and Authorize the clients of our application.

We will learn more advanced level stuff by implementing Filtering, Sorting, and Pagination in our ASP.NET Core Web API.

We will use Postman and Swagger to test our Authentication and Authorization.

We will also use ASP.NET Core Identity in our API where we Register users and assign roles to them.

In this course ASP.NET Core Web API course, you will learn and implement:

  • Understand REST APIs by creating a Web API using ASP.NET Core and .NET 7

  • Understand REST Principles

  • Understand Dependency Injection and Benefits

  • Creating New ASP.NET Core Web API Project

  • Understand .NET 8 and C#

  • Learn And Install Entity Framework Core (EF Core) In ASP.NET Core Web API Project

  • Learn Entity Framework Core Migrations

  • Understand the difference between Domain models and DTOs

  • Understand Domain Models and Repository Pattern

  • Use Swagger To Test ASPNET Core WEB API project

  • Learn How To Map Models To One Another Using Automapper

  • Learn Asynchronous Programming (Async Await)

  • Validate ASP.NET Core WEB API

  • Secure your ASP.NET Core Web API using Microsoft Identity by adding Authentication and Role-Based Authorization to your REST API.

  • Add JWT Authentication to ASP.NET Core Web API by creating JWT Tokens for API Clients.

  • Understand and Add Authentication and Authorization To ASP.NET Core API and Create Read and Write Users To Test this Via Postman

  • Incorporate ASP.NET JWT Authentication Into SwaggerUI

  • Add advanced functionality like Filtering, Sorting, and Pagination to your ASP.NET Core Web API.

Know me more

I am Sameer, a professional software developer with over 15 years of industry experience. I love to educate myself and others and that's why I started with my YouTube channel where I have a loving audience. I create content for software developers like you so that I can share my knowledge.

Statistics

Over 27000 students on Udemy

Over 4000  Reviews on Udemy

Over 2.4 Million Views on YouTube

Some of the reviews

  • Hands down the best way to learn this technology stack. Sameer did a good job here and I hope he will be blessing us with more interesting Angular projects in the future. Maybe a sample e-commerce or Hotel Booking app :)

  • Although I didn't have any prior experience with C# OR .Net Core MVC, I was still able to grasp a lot from this course, all thanks to the instructor.

  • A very detailed and extensive course. clear voice and great detail to topics.

  • and 1000s of more reviews on my courses.

Money Back Guarantee

I Guarantee you that after finishing this course, you will be confident enough to create REST APIs in ASP.NET Core and .NET8 on your own.

You will feel confident at work or when creating your projects.

If you want to create functional, generic, clean, and usable websites using ASP.NET, then this is the course for you.

If still, you are unable to get benefit from this course (we will be sad to see you go. ), there is a "30-day money back guaranteed by Udemy".

Why do you need this course?

By buying this course, you will make a fantastic choice as this course will help you gain the confidence you need to create ASP.NET Core Web APIs

I assure you that by the end of this course, you will have the confidence to create scalable ASP.NET Core Web APIs from scratch.

Enroll now

What's inside

Learning objectives

  • Learn, understand and create aspnet core web api from scratch using .net8
  • Building scalable rest apis from scratch using aspnet core and c#
  • Learn and apply entity framework core to perform crud operations on a sql server database
  • Use entity framework core in a code first approach
  • Understand and apply the repository pattern in aspnet core web api
  • Use domain driven design (ddd) approach to create domain first models and project
  • Understand restful principles and apply them in aspnet core web api
  • Understand best practices and clean coding techniques, know shortcuts and tips and tricks
  • Add validations in aspnet core web api
  • Use popular third-party libraries such as automapper
  • Understand and use interfaces, inheritance, dependency injection etc
  • Understand and implement authentication and role based authorization to authenticate and authorize the aspnet core database
  • Create jwt tokens to authenticate api
  • Test aspnet core web api using swagger and postman
  • Use aspnet core identity in aspnet core web api to authenticate and add role based authorization
  • Learn filtering, sorting and pagination in aspnet core web api
  • Show more
  • Show less

Syllabus

Introduction to building ASP.NET Core Web APIs using .NET6
Introduction to building ASP.NET Core Web APIs using .NET8
Prerequisites
Setting up development environment
Read more
Download and Install Visual Studio 2022
Install .NET SDK and .NET Runtime
Install SQL Server Management Studio
Getting help
Complete Source Code & GITHUB Repository Link
[OLD Content] Complete Source Code and GITHUB Repository
Create New ASP.NET Core Web API & Domain Models
Introduction
Create New ASPNET Core Web API
Understand ASP.NET Core Web API and File Structure
Understand REST and HTTP Verbs
Routing In ASP.NET Core Web API
Running and Calling ASP.NET Core Web API
Understanding Our Domain (Domain Driven Development)
Create Domain Models
Adding Entity Framework Core Packages
Creating the DBContext Class
Adding ConnectionString To The Database In Appsettings.Json
Understanding Dependency Injection & Injecting DbContext Into Our Application
Run EF Core Migrations

In this Quiz, we will cover the topics taught in Section 2 and will focus on the below:

- Rest APIs

- HTTP Verbs

- ASP.NET Core Web API

- EntityFramework Core

Create New Controller - Regions Controller and CRUD Operations / Action Methods
Functionality For Walks - Create, Read, Update, Delete For Walks
Create New Controller (Regions Controller)
Get All Regions Action Method
Get Region By Id Action Method
DTOs and Domain Models
Change Methods To Use DTOs
Create Region Action Method
Update Region Action Method
Delete Region Action Method
Asynchronous Programming, Repository Pattern and Automapper
Asynchronous Programming and Implement Async Await In our Methods
Repository Pattern and Benefits
Implement Repository Pattern In ASP.NET Core Web APIs
Add Other Methods To Repository
Automapper Introduction
Implement Automapper
Seeding Data Using Entity Framework Core
Creating Walks Controller and Create New Walk Action Method
Get All Walks Action Method
Navigation Properties In Entity Framework Core
Get Walk By Id Action Method
Update Walk Action Method
Delete Walk Action Method
Validations in ASP.NET Core Web API
Introduction To Model Validations
Adding Model Validations To Endpoints
Custom Validate Model Attribute
Filtering, Sorting, Pagination in ASP.NET Core Web API
Seeding Data in SQL Server
Filtering
Sorting
Pagination
Securing our ASP.NET Core API - Authentication and Authorization - JWT Tokens
Authentication Flow
Setting Up Authentication - Install Nuget Packages
Testing Authentication Without JWT Token
Setting Up Identity DbContext
Seeding Roles
Run EF Core Migrations To Create Identity Database
Setting Up Identity
Create Auth Controller and Register Action Method
Create Login Action Method
Create JWT Token in ASP.NET Core Web API
Inject TokenRepository and Create Token
Facing 401 Unauthorized?
Role Based Authorization
Add Authorization To Swagger
In this section, you will learn how to upload images from an ASP.NET Core Web API into a local file storage. you will also learn how to serve these static files through the API.
Create Domain Model For Image Upload
DbContext changes and Migrations For Image Upload
New Controller and Action Method for Image Upload
Image Upload Repository Implementaion
Serving Static Files Through ASPNET Core Web API
Advanced Functionality in ASP.NET Core Web APIs
Introduction To Logging
Add Logging to Console in ASP.NET Core Web API
Add Logging to Text File In ASP.NET Core Web APIs
Global Exception Handling In ASP.NET Core Web APIs
Versioning In ASP.NET Core Web API
What is Versioning and How To Implement Versioning in ASP.NET Web API
Implement Versioning in ASP.NET Core Web API By Folder Structure
Implement Versioning By Nuget Package - Proffered Approach
Fix Versioning In Swagger
Consuming our Web API
Consuming REST Web APIs
Creating ASP.NET MVC Web Application
GET - Consume Web API
POST - Consume Web API

Good to know

Know what's good
, what to watch for
, and possible dealbreakers
Uses .NET 8, which is a recent version, so learners can be assured that the skills they learn are up-to-date and relevant to current industry standards
Covers authentication and authorization using JWT tokens, which is a standard security practice for securing web APIs and protecting sensitive data from unauthorized access
Explores filtering, sorting, and pagination, which are essential techniques for building efficient and user-friendly APIs that can handle large datasets and complex queries
Requires familiarity with C# and ASP.NET Web MVC, so learners without this background may find it challenging to keep up with the course material and complete the exercises
Employs Entity Framework Core, which is a modern object-relational mapper that simplifies database interactions and enables developers to work with data using .NET objects instead of raw SQL queries
Uses Swagger UI and Postman for testing APIs, which are industry-standard tools that allow developers to easily explore, test, and debug their APIs, ensuring they function correctly

Save this course

Save Build ASP.NET Core Web API - Scratch To Finish (.NET8 API) to your list so you can find it easily later:
Save

Reviews summary

Build asp.net core web api

According to students, this course is a highly effective and comprehensive guide to building ASP.NET Core Web APIs from scratch using .NET8. Learners particularly appreciate the instructor's clear explanations and the hands-on approach, which involves building a realistic API project. The course covers essential topics like Entity Framework Core, authentication and authorization (JWT), filtering, sorting, and pagination, and promotes clean coding practices. It is considered suitable for beginners and intermediate developers looking to gain practical skills.
Good for beginners and intermediate developers.
"This course is for all skill levels and best suits beginners and intermediate developers."
"Although I didn't have any prior experience... I was still able to grasp a lot."
"Helped students from all backgrounds to learn and implement ASP.NET core Web API."
Course is updated to the latest .NET8.
"THIS COURSE HAS BEEN UPDATED TO THE LATEST VERSION [.NET8]."
"Uses .NET8 and latest features."
"Compatible with both versions - .NET7 & .NET8."
Practical, project-based learning experience.
"Building a real project is very helpful for learning."
"Gain enough practical knowledge to create your own ASP.NET Web APIs."
"This is a complete guide... you will gain so much experience creating ASP.NET Core APIs."
Effectively teaches API security (JWT, Identity).
"Understand and implement Authentication and Authorization... using JWT tokens."
"Secure your ASP.NET Core Web API using Microsoft Identity."
"Create Auth Controller and Register/Login Action Methods."
Covers a wide range of essential API topics.
"Covers everything from scratch to advanced topics."
"Great course covering EF Core, Identity, JWT, filtering, sorting, pagination."
"A very detailed and extensive course."
Instructor provides clear, detailed explanations.
"The instructor explains complex topics very clearly."
"Sameer did a good job here, easy to follow."
"Very detailed and extensive course. clear voice and great detail to topics."

Activities

Be better prepared before your course. Deepen your understanding during and after it. Supplement your coursework and achieve mastery of the topics covered in Build ASP.NET Core Web API - Scratch To Finish (.NET8 API) with these activities:
Review C# Fundamentals
Solidify your understanding of C# syntax, data types, and control flow to prepare for the course's coding exercises.
Show steps
  • Review C# documentation and tutorials.
  • Practice writing simple C# programs.
  • Complete online C# quizzes and exercises.
Brush Up on REST API Principles
Revisit the core concepts of REST APIs, including HTTP methods, status codes, and resource representation, to better understand the course's API development focus.
Show steps
  • Read articles and blog posts about REST API design.
  • Study examples of well-designed REST APIs.
  • Familiarize yourself with HTTP status codes.
Review "ASP.NET Core Web API: Design, Build, and Deploy Production-Ready RESTful Services"
Deepen your understanding of ASP.NET Core Web API development with a comprehensive guide covering design, building, and deployment.
Show steps
  • Read the book's chapters on API design and architecture.
  • Follow the book's examples to build a sample API.
  • Experiment with different API design patterns.
Four other activities
Expand to see all activities and additional details
Show all seven activities
Implement CRUD Operations
Reinforce your understanding of CRUD operations by implementing them in a sample ASP.NET Core Web API project.
Show steps
  • Create a new ASP.NET Core Web API project.
  • Define a data model for your API.
  • Implement Create, Read, Update, and Delete endpoints.
  • Test your API endpoints using Swagger or Postman.
Blog Post: Authentication and Authorization
Solidify your knowledge of authentication and authorization by writing a blog post explaining the concepts and implementation in ASP.NET Core Web API.
Show steps
  • Research different authentication and authorization methods.
  • Choose a specific method to focus on (e.g., JWT).
  • Write a clear and concise explanation of the method.
  • Include code examples and diagrams.
  • Publish your blog post online.
Build a Personal API Project
Apply your newly acquired skills by building a personal API project that solves a real-world problem or showcases your creativity.
Show steps
  • Choose a project idea that interests you.
  • Design the API endpoints and data models.
  • Implement the API using ASP.NET Core Web API.
  • Test your API thoroughly.
  • Deploy your API to a cloud platform.
Contribute to an Open Source API Project
Enhance your skills and contribute to the community by contributing to an existing open-source ASP.NET Core Web API project.
Show steps
  • Find an open-source API project on GitHub.
  • Review the project's documentation and code.
  • Identify a bug or feature to work on.
  • Submit a pull request with your changes.
  • Respond to feedback from the project maintainers.

Career center

Learners who complete Build ASP.NET Core Web API - Scratch To Finish (.NET8 API) will develop knowledge and skills that may be useful to these careers:
Backend Developer
A backend developer builds and maintains the server-side logic and databases that power applications. This course directly aligns with the responsibilities of a backend developer, as it focuses on creating ASP.NET Core Web APIs using .NET8, Entity Framework Core, and SQL Server. A backend developer often works with RESTful principles, domain modeling, and CRUD operations, all of which are covered in this course. Diving into authentication, authorization, filtering, sorting, and pagination are all essential skills for a backend developer. This course will help the student develop proficiency in these domains. With its hands-on approach, this course offers practical knowledge that is directly applicable to real-world backend development scenarios. Anyone wanting to become a backend developer should complete this course.
API Developer
An API developer specializes in designing, building, and managing application programming interfaces. This course will guide the student through the creation of ASP.NET Core Web APIs, using .NET8, providing a strong foundation for an aspiring API developer. The course covers REST principles and the implementation of CRUD operations, which are fundamental to API development. The student will learn how to secure APIs using authentication and authorization with JWT tokens, and how to implement filtering, sorting, and pagination to enhance API functionality. Learning about dependency injection, repository patterns, and the use of tools like Swagger for testing will greatly help one become an API developer. By the end of this course, a student will understand how to create scalable APIs from scratch.
Software Engineer
A software engineer is involved in all stages of the software development lifecycle. This course will improve the student's ability to work with backend technologies, particularly ASP.NET Core Web APIs. Software engineers that are skilled in building RESTful APIs, implementing CRUD operations, and securing applications with authentication and authorization are highly valued. This course covers Entity Framework Core, domain modeling, and clean coding techniques, all of which are essential for producing high-quality software. The course will help software engineers understand and implement filtering, sorting, and pagination, common requirements in many software applications. This course is a practical way to gain hands-on experience with a popular backend technology.
Full-Stack Developer
A full stack developer works on both the front-end and back-end of web applications. This course will help the student build expertise in back-end development, specifically with ASP.NET Core Web APIs. As a full stack developer, understanding REST principles, implementing CRUD operations, and securing APIs are crucial skills. This course provides hands-on experience with Entity Framework Core, domain modeling, and clean coding techniques. The student will learn about filtering, sorting, and pagination, which are essential for building efficient and scalable web applications. The knowledge gained from this course complements front-end skills, enabling the student to create complete web solutions. One who wishes to be a full stack developer should take this course to improve their skills to build complete web applications.
Web Services Developer
A web services developer focuses on creating and maintaining web-based services that allow different applications to communicate with each other. Given the course's focus on ASP.NET Core Web API development, it is highly beneficial for anyone in this role. The student will explore REST principles, CRUD operations, authentication, and authorization with JWT tokens. The course also covers topics like filtering, sorting, and pagination, improving a web service's performance and usability. Knowledge of Entity Framework Core, domain modeling, and clean coding practices are essential for producing robust and maintainable web services. This course helps a web services developer stay current with modern API development techniques, leading to more effective and efficient web service solutions.
Security Analyst
A security analyst is responsible for protecting an organization's systems and data from cyber threats. This course will directly enable the student to improve their knowledge of API security, a crucial aspect of application security. The course covers authentication and authorization using JWT tokens, which are standard security practices for APIs. Understanding how to implement and test these security measures is essential for a security analyst. By learning about common vulnerabilities and how to mitigate them, a security analyst can better protect APIs from attack. This course will improve preparedness to identify and address security risks in ASP.NET Core Web APIs.
Technical Lead
A technical lead guides a team of developers, often making key technical decisions and ensuring the project aligns with best practices. The course may be helpful by providing in-depth knowledge of ASP.NET Core Web APIs using .NET8. As a technical lead, understanding REST principles, CRUD operations, and security considerations are essential. The course covers Entity Framework Core, domain modeling, and clean coding techniques. The technical lead needs to be familiar with filtering, sorting, and pagination to ensure the team builds efficient and scalable solutions. By understanding the nuances of ASP.NET Core Web API development, a technical lead can provide better guidance and mentorship to the team. This course is a practical way for a technical lead to stay current with modern backend development practices.
Solutions Architect
A solutions architect designs and oversees the implementation of software systems, often requiring a broad understanding of different technologies and architectural patterns. This course may benefit a solutions architect by providing hands-on experience with ASP.NET Core Web APIs using .NET8. Understanding how to build scalable, secure, and efficient APIs is crucial for designing modern software solutions. Solutions architects need to be familiar with REST principles, CRUD operations, authentication, and authorization techniques. Filtering, sorting, and pagination are important considerations for optimizing API performance, which are covered in this course. This course may improve a solutions architect's ability to make informed decisions about technology choices and system design, especially when .NET technologies are involved.
Cloud Engineer
A cloud engineer focuses on deploying, managing, and maintaining applications in cloud environments. This course may enhance skills related to developing and deploying ASP.NET Core Web APIs on cloud platforms like Azure or AWS. Cloud engineers often work with microservices architectures, where APIs play a crucial role in communication between services. This course covers REST principles, CRUD operations, authentication, and authorization. Understanding how to build scalable and secure APIs is essential for cloud-based applications. A cloud engineer can leverage this knowledge to optimize the performance and reliability of applications deployed in the cloud. This course may facilitate building and managing robust cloud solutions.
Technical Consultant
Technical consultants provide expert advice and guidance to clients on technology-related issues and solutions. This course may be useful for a technical consultant who works with clients using ASP.NET Core. Understanding how to build and maintain Web APIs can help a technical consultant recommend architectural patterns, coding practices, and security measures. The course covers REST principles, CRUD operations, authentication, and authorization. Technical consultants can leverage this knowledge to help clients build scalable and secure web applications. A technical consultant can broaden their expertise in .NET development.
Quality Assurance Engineer
A quality assurance engineer is responsible for testing software to ensure it meets quality standards and is free of defects. Although the course is primarily focused on API development, it may be helpful for a QA engineer involved in testing APIs. Understanding REST principles, CRUD operations, and authentication/authorization mechanisms can aid in designing effective test cases. The course also covers the use of Swagger and Postman for API testing, which are valuable tools for QA engineers. By understanding how APIs are built, a QA engineer can better identify potential issues and ensure the API functions correctly. This course may improve comprehension of the API development process, leading to more thorough testing.
IT Manager
An IT manager oversees a company's technology infrastructure and ensures that IT projects align with business goals. This course may broaden an IT manager's understanding of the technical aspects of ASP.NET Core Web API development. Knowing how APIs are built, secured, and scaled can help an IT manager make better decisions about resource allocation, project planning, and technology adoption. The course covers REST principles, CRUD operations, authentication, and authorization. IT managers can improve communication with their development teams by having a better grasp of the underlying technology. The IT manager will gain insight into the challenges and opportunities associated with modern web development.
Data Engineer
A data engineer is responsible for designing, building, and maintaining the infrastructure that supports data storage, processing, and analysis. While this course is primarily focused on API development, those skills can still be relevant to a data engineer. An understanding of how APIs can be used to access and manipulate data can be valuable for building data pipelines and ETL processes. The course touches on Entity Framework Core and SQL Server, which are commonly used in data engineering. By understanding how APIs interact with databases, a data engineer can better optimize data access patterns and improve the performance of data-driven applications. This course can provide a broader understanding of the application development landscape.
DevOps Engineer
A DevOps engineer focuses on automating and streamlining the software development lifecycle, from coding to deployment and monitoring. This course may provide some useful background for a DevOps engineer working with ASP.NET Core applications. Understanding how Web APIs are built and deployed can help in automating the build, test, and deployment processes. The course will not go into depth on the specifics of DevOps practices but it will help them by providing more insight into the technologies their team is using and how they function. This course may help one understand the development side of DevOps.
Database Administrator
A database administrator (DBA) manages and maintains databases, ensuring data integrity, security, and performance. While this course primarily focuses on API development, it may be somewhat relevant to a DBA, particularly those working with SQL Server databases in .NET environments. The course touches on Entity Framework Core and database migrations, which are tools DBAs may interact with. An understanding of how APIs interact with databases can help a DBA optimize database schemas and queries for better performance. This knowledge may help DBAs support developers building ASP.NET Core Web APIs. This course can provide a broader understanding of the application development lifecycle.

Reading list

We've selected one books that we think will supplement your learning. Use these to develop background knowledge, enrich your coursework, and gain a deeper understanding of the topics covered in Build ASP.NET Core Web API - Scratch To Finish (.NET8 API).
Provides a comprehensive guide to building production-ready ASP.NET Core Web APIs. It covers topics such as API design principles, security, testing, and deployment. It serves as a valuable reference throughout the course and beyond, offering practical guidance and best practices for building robust and scalable APIs. This book is commonly used by industry professionals.

Share

Help others find this course page by sharing it with your friends and followers:

Similar courses

Similar courses are unavailable at this time. Please try again later.
Our mission

OpenCourser helps millions of learners each year. People visit us to learn workspace skills, ace their exams, and nurture their curiosity.

Our extensive catalog contains over 50,000 courses and twice as many books. Browse by search, by topic, or even by career interests. We'll match you to the right resources quickly.

Find this site helpful? Tell a friend about us.

Affiliate disclosure

We're supported by our community of learners. When you purchase or subscribe to courses and programs or purchase books, we may earn a commission from our partners.

Your purchases help us maintain our catalog and keep our servers humming without ads.

Thank you for supporting OpenCourser.

© 2016 - 2025 OpenCourser