Web API Routing in .NET 8 | Ep 7

preview_player
Показать описание
🎁ALL-ACCESS Subscription: Unlock access to all of my courses, both now and in the future at a low $19.99 / month.

💎Learn .NET MAUI while creating a Contacts App in .NET 7:

🔥Learn Blazor while creating an Inventory Management System in .NET 6

💎 Complete Guide to ASP.NET Core Identity

💎Complete Blazor Course: Build an e-commerce app with ASP.NET Blazor and Clean Architecture

💎 Complete Web API Course:

👍Architecture Course

Рекомендации по теме
Комментарии
Автор

Thank You so much for these videos! I have a solid background in C# and WPF and this is exactly what I needed to jump-start my API development in a very small amount of time.

Cicatka.Michal
Автор

You're the man!! 10/10 very clear explanation!!

Glad i'd found your channel😊😊

JustCode
Автор

You can also use “[action]” inside the http verb template, that will cause the endpoint to be named the same as the method and map the parameters based on the method’s signature.

PticostaricaGS
Автор

but you can do the same with the min API

hilton
Автор

so if i named class as AccountDataController, and
create post method like this:

[apiController]
[Route("api/controller")]
public class AccountDataController : ControllerBase

/// skip the scope

[httppost]
[route(/login)]
public OOO LoginMethod(parameter)

and i write my postman url as [post] (localhost url)/login
then its covert my method route automatically to accountdata/login/post ?

ttangttangyee
Автор

Why did you prefix the Route attribute's url with "api/"? Is that just convention, or is it required?

tambuidev