Complete .NET Core Web API Tutorial with JWT Token | Learn from Scratch

Поделиться
HTML-код
  • Опубликовано: 12 янв 2025
  • #dotnet7 #webapi #nihiratechiees #dotnetcore
    This is .NET 7.0 Web API Full course for beginners & experience it covers below topics
    System setup & Installation
    Create first .NET Core Web API
    Application folder structure
    Common Http Response
    Middleware & Dependency injection
    Entity Framework Core
    Auto Mapper
    Logging using serilog
    Enable CORS
    Rate Limiter
    Basic crud actions
    Authentication
    Authentication
    1, Basic Authentication
    2, JWT Authentication
    3, Refresh Token
    Image Handling (upload & Download)
    Generate PDF & Excel
    Send email with attachment
    Minimal API
    Deployment in IIS Server
    Environmental Variable handling
    Real time application
    GitHub Source code Link
    =====================
    github.com/nih...
    Database script Link
    =================
    github.com/nih...
    PPT Link
    =========
    github.com/nih...
    Download .NET SDK
    ==================
    dotnet.microso...
    Join this channel to get access to perks:
    / @nihiratechiees

Комментарии • 154

  • @Karthik22ng
    @Karthik22ng Год назад +20

    8:48 Middleware
    9:55 Dependency Injection
    13:52 EF Core
    24:35 Auto Mapper
    52:49 Serilog
    1:01:04 CORS
    1:06:44 Rate Limiting
    1:13:30 Authentication
    1:33:14 JWT Auth
    1:53:36 JWT Refresh Token
    2:16:36 Image/File Handling
    2:16:36 Minimal API

  • @youthofthenation112
    @youthofthenation112 Год назад +3

    Amazing one video with all important topics

  • @TafadzwaChiroro-o7t
    @TafadzwaChiroro-o7t 8 месяцев назад +2

    Thank you very much have learned new things here, well understood

  • @subramaniamraju4430
    @subramaniamraju4430 5 месяцев назад

    Lovely tutorial it's very simple and useful

  • @VijayKumar-fq4ie
    @VijayKumar-fq4ie Год назад +1

    Great tutorial everything is in it.

  • @bluejob2010
    @bluejob2010 Год назад +1

    this is a great and complete tutorial that covers the most basic and most used aspects of a web API.
    thanks a lot for sharing.

  • @Md.JoyRahim
    @Md.JoyRahim Год назад

    Just Awesome Sir. Thank you

  • @josbexerra8115
    @josbexerra8115 Год назад +2

    Excelentes Mister Nihira, emocionado con el tutorial

  • @tarunchugh5137
    @tarunchugh5137 Год назад +1

    Thanx for the wonderful explanation, Waiting for part 2 and part 3

  • @singian28
    @singian28 Год назад

    Nice tutorial! Thank you for sharing

  • @manjuanoop7239
    @manjuanoop7239 2 месяца назад

    Amazing video thank you for sharing all the important topics

  • @SpandhanaKandukuri
    @SpandhanaKandukuri Год назад

    You are amazing thanks for this wonderful video.. Kudos to your effort

  • @syedmubeenhussain6317
    @syedmubeenhussain6317 7 месяцев назад

    RUclips Bestest Api Course

  • @ryanqweasdzxc
    @ryanqweasdzxc Год назад

    I can't wait to watch it, thanks, and it will be a huge help to me with my current project!

    • @NihiraTechiees
      @NihiraTechiees  Год назад +1

      Hope you watched

    • @ryanqweasdzxc
      @ryanqweasdzxc Год назад

      @@NihiraTechiees I'm watching now, many thanks. I was just wondering if you could do a video about using web api to combat forgery(Antiforgery) in Angular. :>

    • @maiquang224
      @maiquang224 Год назад

      where database ?? why u connect database??

    • @NihiraTechiees
      @NihiraTechiees  Год назад

      github.com/nihira2020/Database/blob/main/Test_DB_Script.sql database script

  • @jajatirautaray6660
    @jajatirautaray6660 4 месяца назад

    Thank you Sir, This is an amazing one video with all important topics. :)

  • @anchalchaudhary4300
    @anchalchaudhary4300 Год назад

    Best tutorial

  • @EdinhoCarvalho
    @EdinhoCarvalho Год назад

    Bom dia, parabéns pelo ótimo e completo vídeo e muito obrigado por compartilhar seu conhecimento de forma tão clara e objetiva. Abraço.

    • @NihiraTechiees
      @NihiraTechiees  Год назад

      Thanks🙏

    • @EdinhoCarvalho
      @EdinhoCarvalho Год назад

      @@NihiraTechiees uma pergunta, como faço para gravar no banco de dados o retorno que tenho na ApiResponse?

  • @PurpleHeart74
    @PurpleHeart74 Месяц назад

    This video is a gem 💎. I'm going to watch it. Thank you

  • @zoro9878
    @zoro9878 Год назад

    Thank you so much for such an amazing course. Learned many new things!

    • @NihiraTechiees
      @NihiraTechiees  Год назад

      Happy to hear👍 will do more like this in future

    • @maiquang224
      @maiquang224 Год назад

      where database ?? why u connect database??

  • @DevrajKumar-cq3yy
    @DevrajKumar-cq3yy 6 месяцев назад

    Awesome video, you have covered almost all the important topics. Hats off Sir. Could you please create a video on OAuth, SSO?

  • @bigg_Mike
    @bigg_Mike Год назад +2

    Kudos to the lecturer.... You really tried

  • @matheusmgp1
    @matheusmgp1 Год назад

    amazing

  • @ahmedabdulrahman4490
    @ahmedabdulrahman4490 Год назад

    Good job 👍

  • @NguyenTrinh-ju5uc
    @NguyenTrinh-ju5uc Год назад

    Nice vid! i need the real-time part sir.

    • @NihiraTechiees
      @NihiraTechiees  Год назад

      We can provide some content like real time..... Not exactly real time project hope you understand

  • @harshalsawant3991
    @harshalsawant3991 Год назад

    This is amazing. Please come up with the next part and deploy on Azure.

  • @echelon7zulu
    @echelon7zulu 10 дней назад

    in 16:30 before the entity scaffolding what shud we do in the db i mean in ssms shouldwe just paste the script and execute if yes i did it but im getting errors pls create a support group

    • @NihiraTechiees
      @NihiraTechiees  4 дня назад

      Whatever you did it's correct only. If you facing any issues execute the tables script individually

  • @kolarajesh7084
    @kolarajesh7084 Год назад

    Thanks bro

  • @xikote100
    @xikote100 Год назад

    thanks

  • @hassanrabehi-k6l
    @hassanrabehi-k6l 10 месяцев назад

    amazing , this course save me in my new position with this stack and i started with this course but i need to access to user by token after login such as create getuserinfo api that get all the information of user by token how to do it ? for example i want to do crud operator for specific user with token , thanks for help

    • @NihiraTechiees
      @NihiraTechiees  9 месяцев назад

      We can extract token... If you added username in token claim section while generating token. We can get same username then we need to fetch more details by username

  • @IngDanfac
    @IngDanfac Год назад

    thansk bro

  • @kingsengineering
    @kingsengineering 8 месяцев назад

    Scaffold-DbContext “Server=DESKTOP-SUT02GD; Database=restdb; Trusted Connection=True;TrustServerCertificate=True;”
    cmdlet Scaffold-DbContext at command pipeline position 1
    Supply values for the following parameters:
    Provider:
    asking provider what it is exactly

    • @NihiraTechiees
      @NihiraTechiees  8 месяцев назад

      Microsoft.entityframeworkcore.sqlserver

  • @isambarddev4045
    @isambarddev4045 Год назад

    Great Video.
    How do you debug or ("attach to process") ?
    Could you do a video to show this?
    Cheers

    • @NihiraTechiees
      @NihiraTechiees  Год назад

      Will cover in upcoming video..... If you have experience in .NET framework applications we can follow the same steps

    • @isambarddev4045
      @isambarddev4045 Год назад

      @@NihiraTechiees - Thanks for your reply. To expand on my original comment.
      I have connected to the local w3wp (worker process) debugger. However, it is not stopping on the breakpoint?

  • @mexxism
    @mexxism Год назад

    AMAZING!

  • @neethukevin8581
    @neethukevin8581 Год назад

    Can you pls share the structure for the 2 database tables mentioned: tbl_customer and tbl_user. Cant find it in description. Thanks in advance

    • @NihiraTechiees
      @NihiraTechiees  Год назад

      Added in description also check the linkgithub.com/nihira2020/Database/blob/main/Test_DB_Script.sql

  • @kulasekaralwar369
    @kulasekaralwar369 Год назад

    Very nice tutorial sir, Thank you very much, can you explain between jwt token and bearer token(which is best approach)

  • @margretkanniga1923
    @margretkanniga1923 Год назад

    Pls upload video with azure basics and .net application deployment in azure

  • @nangdalet5994
    @nangdalet5994 Год назад

    Can you demo follow this video using sql command on asp or using store procedure.

    • @NihiraTechiees
      @NihiraTechiees  Год назад +1

      You are expecting ado.net instead of Entity framework. Will create separate video for that

    • @ineverdiealone
      @ineverdiealone Год назад

      @@NihiraTechiees Dapper pls

  • @sunnybollepally1156
    @sunnybollepally1156 Год назад

    Can you make one to copy database tables from one database to another DB using EF code first approach ?

    • @NihiraTechiees
      @NihiraTechiees  Год назад

      Sure, you have to change the connection string and executive the migration command once again

  • @QuoteWonders88
    @QuoteWonders88 Год назад

    Hi Sir, Can you please provide one example with docker also

  • @pranitmhatre8924
    @pranitmhatre8924 Год назад

    Hi Sir,
    Amazing course! 😊
    Can you please share the data and structure for the database?

    • @NihiraTechiees
      @NihiraTechiees  Год назад

      Check description for database script

    • @NihiraTechiees
      @NihiraTechiees  Год назад

      github.com/nihira2020/Database/blob/main/Test_DB_Script.sql

  • @ajaypanse4489
    @ajaypanse4489 Год назад

    Hi,
    Its very good tutorial to implement JWT token in .NET core Web API.
    I wanted to know, in Postman there is Authorization Tab through which also we can pass bearer token, then how should we validate it in our code. Is there any difference between passing token in Header and passing through Authorization tab? If yes then please explain the same and also tell us how to implement the same in our code.
    Thanks

    • @NihiraTechiees
      @NihiraTechiees  Год назад

      No difference because both are hitting same code.

    • @ajaypanse4489
      @ajaypanse4489 Год назад

      @@NihiraTechiees,
      I tried it using Authorization Tab with Bearer token but it always return status as Unauthorised. Do we need to do any changes in our code? Please guide

    • @teggie3688
      @teggie3688 Год назад

      @@ajaypanse4489 did u solve this?

  • @atulasati2738
    @atulasati2738 Год назад

    Hi Sir, Do you have any plan to create video on 'RabbitMQ in Microservice or WebAPIs'?

    • @NihiraTechiees
      @NihiraTechiees  Год назад

      Yes . but it will take some time bro

    • @atulasati2738
      @atulasati2738 Год назад

      @@NihiraTechiees approx. time ?

    • @NihiraTechiees
      @NihiraTechiees  Год назад

      Will begin 1st week of february..... For January already have some plan

    • @atulasati2738
      @atulasati2738 Год назад

      Okay, Thanks for the update 👍

  • @myfashionista8062
    @myfashionista8062 Год назад

    Can you provide lecture with unit of work ?

    • @NihiraTechiees
      @NihiraTechiees  Год назад

      ruclips.net/video/GixRckYu5RY/видео.html

  • @BelloSoliu-h4v
    @BelloSoliu-h4v Год назад

    waiting for this to drop

    • @NihiraTechiees
      @NihiraTechiees  Год назад

      Drag & Drop content or Drag & drop image upload ?

  • @jayakumar2927
    @jayakumar2927 Год назад

    waiting for video bro

  • @naveenchitti6363
    @naveenchitti6363 Год назад

    Dude please add exporting pdf And i ❤❤ the course.

  • @sarath2873
    @sarath2873 9 месяцев назад

    Hi Sir When Add Is active condition In AutoMapper is is showing error because bool not accepting && operator how to fix this error
    Operator '&&' cannot be applied to operands of type 'bool?' and 'bool'

    • @NihiraTechiees
      @NihiraTechiees  9 месяцев назад

      Look like you have nullable columns so add hasvalue

  • @ajaypanse4489
    @ajaypanse4489 Год назад

    Hi,
    In Minimal API, do we need to write business log in Program.cs or we can write in separate class & just call in Program.cs. Please explain

    • @NihiraTechiees
      @NihiraTechiees  Год назад

      We can write from program.cs. if something has more logic involved don't go for minimal api

  • @okohemmanuel6717
    @okohemmanuel6717 11 месяцев назад

    please sir is the part 2 available ?

    • @NihiraTechiees
      @NihiraTechiees  11 месяцев назад

      ruclips.net/video/SIdgC4bqNZ4/видео.html

  • @NguyenTrinh-ju5uc
    @NguyenTrinh-ju5uc Год назад

    Sir!! i need next part of this can u give me a link. thanks!

    • @NihiraTechiees
      @NihiraTechiees  Год назад

      ruclips.net/video/SIdgC4bqNZ4/видео.html
      This is one example.. If any specific topic if you are looking let me know

  • @Onlooker414
    @Onlooker414 6 месяцев назад

    Hearing "OK" at the end of each sentence is really annoying. You didn't enter any command in PM Manager console Window at 16:17/

    • @NihiraTechiees
      @NihiraTechiees  6 месяцев назад

      Yes it's not pasted see in the 16:37 again pasted.... Also thanks for your feedbacks 👍

    • @Onlooker414
      @Onlooker414 6 месяцев назад

      @@NihiraTechiees Got it, thanks.

  • @MSivaramprasad
    @MSivaramprasad Год назад

    Hi sir, can you please Share the repo link as well

  • @netrunner1987
    @netrunner1987 Год назад

    Slowly digesting all of this. Are you going to write a Client side to this, so we can login and use the other APIs?

    • @NihiraTechiees
      @NihiraTechiees  Год назад +1

      We can use this into other client side apps. Do you want me to consume in the client side app

    • @neethukevin2619
      @neethukevin2619 Год назад

      @@NihiraTechiees Yes please

    • @mrt7948
      @mrt7948 Год назад

      Yes please make a client side app with login access

  • @rizwanahmed5596
    @rizwanahmed5596 3 месяца назад

    where is associatecontroller portion in video

    • @NihiraTechiees
      @NihiraTechiees  3 месяца назад

      Source code link in description

    • @rizwanahmed5596
      @rizwanahmed5596 3 месяца назад

      ​@@NihiraTechieeswhere is tutorial of remaining code i followed 3.30hrs and 1.17 hrs video where i didn't find

  • @QuoteWonders88
    @QuoteWonders88 Год назад

    Hi Sir , Can you attach the ppt once again it's showing 404 error while trying to download

  • @neethukevin2619
    @neethukevin2619 Год назад

    Sir, will all the contents in this video work with .Net 6.0 as well?

  • @Karthik22ng
    @Karthik22ng Год назад

    Thanks a lot, would be better if you store the password using salt/hash

  • @enriqueruiz320
    @enriqueruiz320 Год назад

    First 😄

  • @colombolife7733
    @colombolife7733 Год назад

    Sir, Can I get this video recording

    • @NihiraTechiees
      @NihiraTechiees  Год назад

      Check now, once premiere finished record available

  • @orhanaliyev9774
    @orhanaliyev9774 Год назад

    why you all use white theme?And why you didn't use snippet for vs for example to create class constructor just write ctor

  • @donydhony3999
    @donydhony3999 Год назад

    sir tamil a podunka sir english la niraya youtube la irukku .but tamil a illa sir

    • @NihiraTechiees
      @NihiraTechiees  Год назад +1

      Starting tamil ah ta potan bro. I am not getting enough support.
      Namma english kuda almost tamil mari ta pasirupan

  • @Otonye-ft8ul
    @Otonye-ft8ul 11 месяцев назад

    This course is not for beginners. please dont waste your time coming here

  • @Otonye-ft8ul
    @Otonye-ft8ul 11 месяцев назад +1

    some people are just new to programming and you just pulled out a database just like that without telling us how to install it. I guess i have to stop at 17minutes

    • @NihiraTechiees
      @NihiraTechiees  11 месяцев назад

      Understand your concern. but I clearly mentioned this video about dot net core not database.

  • @maiquang224
    @maiquang224 Год назад

    I got stopped at 17:40 because I don't have a database so I can't connect like your video

    • @NihiraTechiees
      @NihiraTechiees  Год назад

      Then install database bro anyway it's needed

  • @neethukevin2619
    @neethukevin2619 Год назад

    Can you pls share the structure for the 2 database tables mentioned: tbl_customer and tbl_user. Cant find it in description. Thanks in advance

    • @NihiraTechiees
      @NihiraTechiees  Год назад

      github.com/nihira2020/Database/blob/main/Test_DB_Script.sql