Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Web API in ASP.NET Core 5 with a real project
Rating: 3.6 out of 5(10 ratings)
59 students

Web API in ASP.NET Core 5 with a real project

In a real project (Server & Client side) you will be familiar the concepts of API's
Created byKamal Habibi
Last updated 5/2021
English
English [Auto],

What you'll learn

  • Login and Register API
  • Delete, Select, Insert, Update (CURD)
  • Submit a form with images of files
  • Repository Pattern
  • Memory and Response Caching
  • Authentication with JWT (JSON Web Token)
  • Validation
  • Client and Server Side
  • Authentication
  • Swagger (Documentation)
  • Paging
  • Manage HTTP Headers
  • Seed Data

Course content

6 sections32 lectures6h 53m total length
  • Introduction2:32

    Learn web API in ASP.NET Core 5 through a real project and JSON data exchange. Explore server and client concepts, including DbContext, JWT, Swagger, repositories, and client-side token handling.

  • Create Server-Side Project1:18

    Open Visual Studio and create an ASP.NET Core Web API project named ServerSide with solution WEB-API, selecting .NET Core and ASP.NET Core 5, and disable HTTPS for a test project.

  • Overview6:18

    Explore startup configuration files such as StartUp and appsettings.json, adjust launchBrowser for IIS or self-hosted, and use swagger to document and test the WeatherForcast API via Get requests at localhost:5000.

Requirements

  • ASP NET
  • C#
  • Entity Framework

Description

In this tutorial, we will implement API related topics in .NET Core 5. We start the training with a real project that has a server and client-side. The two sections communicate via the API. In this tutorial, we will cover important issues and avoid issues that you know about.

On the Server-side, we implement the ApiConntrollers, methods such as Post, PUT, Get and Delete. We can also authenticate users using JWT (JSON WEB Token). We also implement how to save photos or files via the API. We will also implement things like Paging, Response, and Memory Caching, Validation, Repositories Login, and Register API. In addition, we can change the header for HTTP and put information that we use in the client section.

In contrast on the Client-side, we create a project with a news template. And we will receive and send information from the server through the API. To do this, we receive the token from the server at login time, then store it in the client and send it to the APIs along with the requests. Also, on the Client-side, we have a section for managing information, which is Authorized so that unauthorized users cannot manipulate the information. Finally, for all APIs, we use Swagger to create documentation that is important to developers.

Who this course is for:

  • Meddle-level developers