ROUTING in ASP.NET Core | Getting Started With ASP.NET Core Series

Sdílet
Vložit
  • čas přidán 26. 08. 2020
  • Hey Friends, Routing is responsible for matching incoming HTTP requests and dispatching those requests to the app's executable endpoints. Endpoints are units of executable code that handles requests coming to the application. Endpoints are defined and configured when the app starts
    In this video, we will learn about the basics of routing and how it builds over the middleware pipeline in ASP NET Core. We will see how to define endpoints, how URLs are formed and routed. We will also learn about route templates and how to add constraints to routes. I will also show you how some of these core concepts translate to API Controllers and how to use them there as well.
    🔗Routing in ASP NET Core - docs.microsoft.com/en-us/aspn...
    Additional Watching
    📹Dependency Injection in ASP NET Core - • DEPENDENCY INJECTION i...
    📹Middleware in ASP NET Core - • MIDDLEWARE in ASP.NET ...
    📹ASP NET Core Series - • ASP.NET Core
    Come say hi! ✋
    🌍 Blog - rahulpnath.com/
    ✉ Subscribe to my Newsletter - www.rahulpnath.com/subscribe
    🐦Twitter - / rahulpnath
    📸Instagram - / rahulpnath
    🎥 Recording Setup and Workflow - www.rahulpnath.com/blog/youtu...
    Make sure to SUBSCRIBE to the channel. THANK YOU for helping me grow this channel !!
  • Jak na to + styl

Komentáře • 57

  • @RahulNath
    @RahulNath  Před 3 lety +1

    Source code - rahulpnath.visualstudio.com/DefaultCollection/CZcams%20Samples/_git/routing

    • @sawyerkaleb2057
      @sawyerkaleb2057 Před 2 lety

      I dont mean to be offtopic but does any of you know of a method to log back into an instagram account?
      I was stupid forgot the account password. I would appreciate any help you can offer me!

    • @moshehouston4408
      @moshehouston4408 Před 2 lety

      @Sawyer Kaleb Instablaster :)

    • @sawyerkaleb2057
      @sawyerkaleb2057 Před 2 lety

      @Moshe Houston I really appreciate your reply. I got to the site on google and Im in the hacking process atm.
      I see it takes a while so I will get back to you later when my account password hopefully is recovered.

    • @sawyerkaleb2057
      @sawyerkaleb2057 Před 2 lety

      @Moshe Houston it worked and I finally got access to my account again. I'm so happy:D
      Thank you so much, you saved my ass :D

    • @moshehouston4408
      @moshehouston4408 Před 2 lety

      @Sawyer Kaleb Glad I could help :D

  • @ruckmangadan
    @ruckmangadan Před 2 lety

    Really it helps me to understand how the routing works!. Thank you

    • @RahulNath
      @RahulNath  Před 2 lety

      Glad to hear that! Do check out the full series where I explain each concept in detail. I'm sure you'll like it bit.ly/asp-net-core-series

  • @sumitchaturvedi3345
    @sumitchaturvedi3345 Před 4 měsíci

    It is fantastic! Thank You! very helpful

    • @RahulNath
      @RahulNath  Před 4 měsíci

      Thank you and glad you liked it Sumit!

  • @yessenzhol8989
    @yessenzhol8989 Před 2 lety

    It is fantastic! Thank You!

  • @SangramNandkhile
    @SangramNandkhile Před 3 lety +2

    Very well done again. Gives such a great idea about the whole routing configuration.. one small suggestion though. You can decrease the size of face cam as it sometimes interferes with the code you write..May be it will easier to keep it on the left side. Thanks

    • @RahulNath
      @RahulNath  Před 3 lety +1

      Sangram Nandkhile Thank you ! Feedback taken , next video I’ll make it smaller and try making it on left. Do let know if you have any other feedback or topic suggestions 👍

  • @starman9000
    @starman9000 Před 3 lety +1

    Hey Rahul, you are a star! you are videos are the best start point towards understand the topic in straight under 20 mins! not time wastage! you look serious teacher, Just relax little bit with a smile, Excellent work as usual! I am loving it ! I press the Ring bell for the first time!

    • @RahulNath
      @RahulNath  Před 3 lety

      Thanks, Jay for the nice comment and your feedback!
      Yes, putting on a smile and being relaxed is one of my top feedback and something I want to improve. Off-camera I smile, laugh and make jokes a lot. When I switch on the camera to record, everything just hides away 😀 I will work on it.

    • @starman9000
      @starman9000 Před 3 lety +1

      @@RahulNath 😄, when you look at monitor, think you are teaching a friend, may be put some one picture next to it, who bring smile on your face when you look at it!

    • @RahulNath
      @RahulNath  Před 3 lety

      Jay Sure thanks for the tip - Will definitely work on this.

  • @onkarpatil335
    @onkarpatil335 Před 2 lety

    You are awesome. Keep posting

    • @RahulNath
      @RahulNath  Před 2 lety

      Thank you for motivating! I will 😀

  • @vinodcd
    @vinodcd Před 3 lety

    Well explained

  • @nivinivethaasenthilkumar-gz6hs

    I'm beginner, We always match url with controller for processing http request but setting up middleware for routing how request will transform from configure service to controller. Should be write middleware for every controller matching route. ?

  • @yashvardhan8696
    @yashvardhan8696 Před 3 lety

    thank you sir

    • @RahulNath
      @RahulNath  Před 3 lety

      Most welcome Yash. You might like other videos in ASP NET Core Series czcams.com/play/PL59L9XrzUa-nqfCHIKazYMFRKapPNI4sP.html
      And you can call me Rahul 😀

  • @mohyousefmestar
    @mohyousefmestar Před 9 měsíci

    You are awesome 😍😍

    • @RahulNath
      @RahulNath  Před 9 měsíci

      Thank you so much 😀Hope you are enjoying the series bit.ly/asp-net-core-series

  • @mdabuzar2130
    @mdabuzar2130 Před 3 lety +2

    Hi Rahul, Any chance to make video on unit/integration testing using XUNIT. Thanks in advance.

    • @RahulNath
      @RahulNath  Před 3 lety

      I have a set of videos on AutoFixture and how that helps with Unit Testing. Check it out here czcams.com/play/PL59L9XrzUa-mItWClbGuMEK5oQpU2onCq.html. Also check out how to set up tests in DevOps pipeline if you are interested - czcams.com/video/FFxww1-M25E/video.html
      I will do a video on integration testing soon.
      Let know if any of that helps and if you have any specific scenaios in mind.

  • @luvrahooo
    @luvrahooo Před 2 lety

    Thanks 🙏 again. Great videos. Do you have any video on how to work with dotnet 6 webapi with minimal option?

    • @RahulNath
      @RahulNath  Před 2 lety

      Glad you like it. I don't have one yet, but I am working on a few videos around that. Hopefully will publish soon! (Subscribe to be notified 😉)

  • @akfsf00543
    @akfsf00543 Před 3 lety

    Rahul you explain is very good and to the point thank for this video. can you make this video in hindi language?

    • @RahulNath
      @RahulNath  Před 3 lety

      Thank you for letting know Anupam. Hindi is not my main language so that won't be happening 😃 If you have any topics that you would like me to cover do let know, and I can do that in English.

  • @AnkitMishra-mo3dv
    @AnkitMishra-mo3dv Před 2 lety

    I have one strong doubt. What's the difference between this UseRouting() and the normal Attribute routing that we do by mentioning [Route("attributeName")]
    at controller level
    are both different??
    then which case what we should use?

    • @RahulNath
      @RahulNath  Před 2 lety

      UseRouting adds the required middleware to enable Routing to the ASP NET Pipeline. Do check out the Middleware video to get some more info. czcams.com/video/5eifH7LEnGo/video.html
      Also other videos in this series might help bit.ly/asp-net-core-series
      Do let me know if you have additional questions.

  • @akhilm4867
    @akhilm4867 Před 3 lety +1

    Please make a video any attribute routing

    • @RahulNath
      @RahulNath  Před 3 lety

      Thank you for the suggestsion, added to the list!

  • @ganirban82
    @ganirban82 Před 3 lety

    Good one Rahul for tutorials ! Can u share any web link that describe MVC Vs WebAPI routing difference on Asp.Net Core
    Thanks,

    • @RahulNath
      @RahulNath  Před 3 lety

      The official docs should be a good start docs.microsoft.com/en-us/aspnet/core/fundamentals/routing?view=aspnetcore-3.1&WT.mc_id=AZ-MVP-5003875
      Are you looking for anything in particular?

    • @ganirban82
      @ganirban82 Před 3 lety

      @@RahulNath , Thanks, actually i am looking for difference of MVC Vs WebAPI routing on dotnetcore

    • @RahulNath
      @RahulNath  Před 3 lety

      @@ganirban82 Don't think there is much difference there now. Are you looking/facing any particular issues?

  • @mayankrathore7558
    @mayankrathore7558 Před 2 lety +1

    Great content can you please help with MS Odata as well

    • @RahulNath
      @RahulNath  Před 2 lety

      Thank you Mayank! What in particular are you looking with Odata?

    • @mayankrathore7558
      @mayankrathore7558 Před 2 lety +1

      @@RahulNath Odata itself a broad topic we can start with basic entity sets

    • @RahulNath
      @RahulNath  Před 2 lety +1

      @@mayankrathore7558 Cool ok - added to my list!

  • @srinivasadineshparupalli5139

    Good one Rahul. Just a feedback. Have few mins on diff between Routing before .NET Core vs in .NET Core. This will set the context for the topic. And also, why so serious ;-)

  • @akhilm4867
    @akhilm4867 Před 3 lety

    please do a video about session, cookie, local storage

    • @RahulNath
      @RahulNath  Před 3 lety

      Sure will do! Thank again Akhil!

  • @akhilm4867
    @akhilm4867 Před 3 lety +1

    Hi Rahul can u make a video on rest API
    Like rest vs soap

    • @RahulNath
      @RahulNath  Před 3 lety

      What in particular are looking for? Haven't used SOAP based services for a long time.

    • @akhilm4867
      @akhilm4867 Před 3 lety

      @@RahulNath I need a good understanding of rest API, means rest how it works, protocol like that

  • @akhilm4867
    @akhilm4867 Před 3 lety +1

    Parllely can u do videos about docker and k8

    • @RahulNath
      @RahulNath  Před 3 lety

      Thank you for the suggestion. I do have some plans on covering concepts around docker, but can't confirm by when though.