
Develop controller and minimal API projects in .NET 6 using EF code-first, generic repositories, and CRUD, with JWT authentication, role-based authorization, and Swagger UI and Postman testing.
Set up your development environment by installing Microsoft Visual Studio, Microsoft SQL Server, Postman, and Node.js long-term support version to start building asp.net core web api and minimal api projects.
Assess your eligibility with prerequisites in object oriented programming, web app development, rest API basics, and entity framework know-how to enroll in this course.
Trace the evolution of ASP.NET Core Web API from WCF to minimal API in .NET 6, resources, inject dependencies, secure endpoints, test with Swagger, and access data via Entity Framework.
Build an events management API with asp.net core, sql server, and entity framework code-first, featuring jwt authentication, role-based authorization, and a generic repository pattern for controller and minimal APIs.
Create domain models as reusable entities with server-side validations, define database schemas with EF Core in a separate class library, and establish role–user relationships for CRUD operations.
Build and configure a .NET 6 class library with four EF Core models (employee, event, role, user), apply data annotations, and define a one-to-many role-user relationship for SQL Server.
Develop a reusable data access layer with a db context and generic repository pattern to perform CRUD operations on employee, event, role, and user using Entity Framework Core and migrations.
Create a data access layer project, configure EF Core with SQL Server, define DbSets for employees, events, roles, and users, seed data, and run migrations to update the database.
Learn how to implement a synchronous, generic repository pattern for crud operations across multiple entities, decoupling the db context from controllers through a generic interface and class.
Implement a generic repository pattern in the data access layer, creating a reusable I.CommonRepository interface and CommonRepository class to perform CRUD operations with a db context and save changes.
Create your first asp.net core web api using the dotnet 6 template in visual studio 2022, with a controller-based approach, swagger, and the default weather forecast controller for testing.
Create a .NET 6 web api in an existing solution, using a controller based approach and swagger. Test the weather forecast get action through swagger UI and review program.cs setup.
Extend your ASP.NET Core Web API by adding an Employees controller and injecting the DbContext with a generic repository to enable fetch all and fetch by ID operations.
Add a new api controller with actions to fetch all employees and an employee by id, wiring to a repository via dependency injection and configuring ef core sql server.
Explore the three action method return types in ASP.NET Core Web API—specific types, IActionResult, and ActionResult<T>—and how produce response type attributes document swagger with 200, 404, and 201 statuses.
Explore returning IActionResult and ActionResult<T> in API actions, using produces response type attributes to describe 200 and 404 outcomes, returning employee arrays or a single employee via Swagger UI.
Implement create, update, and delete operations in an ASP.NET Core Web API using post, put, and delete verbs, repository methods, and db context to persist changes.
Implement create, update, and delete operations in an ASP.NET Core Web API using a repository pattern, testing with swagger, returning 201, 204, 400, and 404 responses.
Demonstrates model validations in an employee model, enforcing required fields and max lengths, including an email via the email address attribute, and shows 400 errors for invalid input in swagger.
Complete an events controller implementing CRUD operations via a common repository, wired through dependency injection, and register the event service in the container for .NET 6 web api project.
Identify users with credentials and enforce role-based authorization in an ASP.NET Core Web API, hashing passwords with the decrypt library and validating credentials via a repository.
Build a .NET 6 web api authentication workflow by creating a repository and interface, wiring dependency injection, and exposing endpoints to register users and verify credentials.
Learn to issue and validate JWT-based authentication in ASP.NET Core, generate signed tokens with claims, configure JWT bearer middleware, and transmit tokens via the authorization header.
Learn to generate and return a JWT in an ASP.NET Core Web API by installing JWT packages, configuring a secret, implementing a token manager, and securing endpoints with bearer authentication.
Understand role based authorization in a web api by adding roles to the JWT and applying authorize attributes with specific roles to grant or deny insert, update, and delete actions.
Implement authentication middleware and role-based authorization in a .NET 6 web API, issuing tokens with role claims and enforcing access via method-level authorize attributes for HR and employee roles.
Learn how data transfer objects (DTOs) and AutoMapper streamline ASP.NET Core Web API mapping, encapsulate models, expose only required data, and map between source and destination types.
Learn to implement data transfer objects and automate mapping in an ASP.NET Core Web API using AutoMapper, configure services, create mapping profiles, and expose DTOs in controllers.
Test ASP.NET Core Web API endpoints by consuming them with Postman, Angular framework, Vue.js framework, Regus Library, and React with Axios, and display results in tabular formats.
Test ASP.NET Core Web API endpoints with Postman by obtaining a JWT token and using bearer authentication to perform get, post, put, and delete on employees.
Test the output of the employee endpoint using an Angular application, building and running the app with Node.js, npm, Angular CLI, and Bootstrap.
Demonstrates fetching data from a web API with an Angular client by registering the HTTP client, injecting the service, and handling token headers, authentication, and CORS considerations.
Explore cross-origin resource sharing (cors) in ASP.NET core web api via middleware and policies, using default and named policies plus enable cors attribute to allow any origin, header, and method.
Test ASP.NET Core Web API endpoints with a React app that calls the employee controller to display data in a Bootstrap table, using Axios and async/await.
Fetch and display employee data from a .NET 6 ASP.NET Core Web API using React and axios, with a singleton employee service, useState and useEffect, and a table.
Explore asynchronous generic repository patterns with asynchronous action methods, contrast synchronous and asynchronous controllers, and implement task-based CRUD with async/await against the Entity Framework.
Implement an asynchronous generic repository with async/await CRUD actions in employees and events controllers, using DTO, dependency injection, and save changes async.
Compare minimal API in .NET 6 with controller based web APIs, emphasize minimal dependencies for microservices, and show endpoint mapping with map get, post, put, and delete, and swagger UI.
Learn to build a first minimal api with .NET 6, creating a no-controller web api, exposing a weather forecast endpoint with map and swagger.
Explore dependency injection in minimal api for performing crud operations, using delegate functions, extension methods, and the results class to return ok, not found, created, and no contents.
Explore building a minimal api with dependency injection and an async repository to perform create, read, update, and delete via map get, post, put, and delete using results helpers.
Sharing data with authentication and authorization across number of platforms and devices is a challenging job. Being a developer, in an organization, we build solutions using different technologies, libraries, frameworks etc. To share the data with all these platforms and devices, we can think of ASP.NET Core Web API along with authentication, authorization and many more features which we can use during the development of our applications.
In this course, we will learn ASP.NET Core Web API development by building a project with controller based API and Minimal API which is introduced in .NET 6. We will also see how to secure Minimal API using Auth0 security with Access Token. Also, let's see how to use DTOs [Data Transfer Object] and Auto Mapper in our application. This will be a complete hands-on course where we will develop our API with different examples. During the ASP.NET Core Web API development, we will use -
Model Classes
Entity Framework Core - Code First Approach
Data Access Layer/Logic
ASP.NET Web API [Controller and Minimal API]
Dependency Injection
JsonWebToken [JWT]
Auth0
Etc.
We will use Microsoft Visual Studio 2022 and Microsoft SQL Server. Along with that we will test our Web API endpoints using -
Swagger UI
Postman
Angular Application
React JS application