Thread: ASP.NET/Intro to Web API in .NET 6 - Including Minimal APIs, Swagger, and more

Intro to Web API in .NET 6 - Including Minimal APIs, Swagger, and more
Intro to Web API in .NET 6 - Including Minimal APIs, Swagger, and more



Re: Intro to Web API in .NET 6 - Including Minimal APIs, Swagger, and more
Tutorial from Microsoft: Create a web API with ASP.NET Core



Re: Intro to Web API in .NET 6 - Including Minimal APIs, Swagger, and more
Host ASP.NET Core on Windows with IIS



Re: Intro to Web API in .NET 6 - Including Minimal APIs, Swagger, and more

Webapi controller without authentication

The [AllowAnonymous] attribute will skip authentication and authorization during an access request to a controller decorated with this attribute or to a specific action method decorated with this attribute

 [Authorize] 
 public class SampleController : BaseController
 {     
   [AllowAnonymous]    
    public IActionResult Get() { ... }     
    public IActionResult Post() { ... }
 }