Mastering Web API Attribute Routing in ASP.NET Core | .NET fullstack dev - 011

Опубликовано: 09 Август 2026
на канале: Code with Saar
647
17

🍿 4th video in a series on building a backend and will learn to use attribute routing.

🐠 Visit the live site at: https://fishcard.codewithsaar.net.


🏠 Connect with me through my page: https://www.codewithsaar.com


➡️ Reach me on Twitter @SaarShen.
➡️ Or if you are only interested in channel content: @CodeWithSaar.


For more videos like this:


💡Subscribe to my channel - https://www.youtube.com/CodewithSaar?....


🧩 Resources

📺 Route constraints official document: https://learn.microsoft.com/en-us/asp...

📺 Demo code: https://github.com/xiaomi7732/LearnWe...


💬 Discord server for Code w/ Saar:   / discord  


🔖 Chapters


00:00 Intro to attribute routing
01:42 Route template
03:05 How does the routing system working
03:22 Demo - how route happens
04:51 Token replacements - area, controller and action
05:43 Routing Parameters
07:52 Parameter constraints
09:34 Optional parameters and default parameters
11:07 Slug
12:45 Recap