ASP.NET Core API. From scratch to Master + Azure deployment

Complete C# ASP.NET Core 3.1 and Entity Framework bootcamp. Linux/macOS guide. Deploy API and Database to MS Azure cloud

The .NET Core platform is the latest tool from Microsoft enabling the creation of cross-platform applications, including web and web APIs.

What you’ll learn

  • Create a ASP .NET Core application that according to the REST architecture will: read, create, modify or delete data from the server – using Entity Framework Core.
  • Authenticate & authorize users via JWT tokens – with custom authorization policies.
  • Create Azure App Service resource and deploy API along with Database to Azure Cloud.
  • create a MS SQL database based on classes in C#.
  • send database queries from code using ORM (Entity Framework Core).
  • use of the basics Azure Cloud services.
  • hash users passwords.
  • validate incoming models and return appropriate messages in case of incorrectness.
  • use the built-in container to inject dependencies.
  • log errors or specific information to a text file.
  • create documentation (using the Swagger tool).
  • use the auto-mapper.
  • configure NLogger.
  • use the Postman to consume the web API.
  • create your own authorization policies.
  • configure entity framework relationships.
  • handle Cross-Origin Resource Sharing policy.
  • create Action API filters.
  • serve static files publicly & with limited user access.
  • handle exceptions globally with ExceptionFilter.
  • configure AzureSQL database.
  • cache server responses.
  • restrict resource access.

Course Content

  • Course introduction –> 1 lecture • 2min.
  • HTTP & REST –> 3 lectures • 9min.
  • New .NET Core project –> 4 lectures • 19min.
  • Entity Framework –> 5 lectures • 18min.
  • First API Controller –> 10 lectures • 43min.
  • Extending the data endpoints –> 5 lectures • 31min.
  • API Filters –> 5 lectures • 27min.
  • Authentication –> 7 lectures • 1hr 1min.
  • Authorization –> 5 lectures • 46min.
  • API Filters –> 5 lectures • 27min.

ASP.NET Core API. From scratch to Master + Azure deployment

Requirements

  • Basic knowledge of C#, including LINQ, collections and generic types.

The .NET Core platform is the latest tool from Microsoft enabling the creation of cross-platform applications, including web and web APIs.

Due to its high performance, open-source code, and the possibility of implementation on various systems, it is becoming more and more popular.

 

The course presents how using ASP.NET Core a web API application is created, which ultimately can be consumed by SPA (single page application), mobile applications, IoT applications, or any application where communication takes place via the HTTP protocol. First of all, the course will show you how to build applications in accordance with the REST architecture. Good practices will be discussed, such as dependency injection, auto-mapping, error logging, model validation, use of object-relational mapping.

During the course you will:
– create an application that according to the REST architecture will: read, create, modify or delete data from the server

– send database queries from code using ORM (Entity Framework Core)

– create an MS SQL database based on classes in C #

– validate incoming models and return appropriate messages in case of incorrectness

– use the auto-mapper

– use the built-in container to inject dependencies

– log errors or specific information to a text file

– create documentation (using the Swagger tool)

– configure NLogger

– use the Postman to consume the web API

– authenticate users via JWT tokens

– create your own authorization policies

– create a user and role entities tables

– hash users passwords

– authorize based on users claim and its value