-
-
Notifications
You must be signed in to change notification settings - Fork 1
Authorization policies and requirements
Ieuan Walker edited this page Dec 3, 2025
·
2 revisions
This extension method automatically documents the authorization policies and their requirements. It appends those details to the end of the API’s description field.
builder.Services.AddOpenApi(options =>
{
options.AddAuthorizationPoliciesAndRequirements();
});Getting Started
Endpoints
- Endpoint interfaces
- HTTP verbs
- Request binding
- Grouping
- Returning multiple different responses
- Dependency injection
Validation
- Setup
- Data annotations
- Fluent validation
- Disabling validation
- Manually return BadRequest with validation errors
Output Caching
OpenAPI & Documentation