Epic: Minimal API - OpenAPI features #34514
Labels
area-minimal
Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc
Epic
Groups multiple user stories. Can be grouped under a theme.
feature-minimal-actions
Controller-like actions for endpoint routing
Milestone
This issue covers the desired experience for minimal APIs integration with OpenAPI via metadata and
ApiExplorer
observing libraries like Swashbuckle and nSwag.Issues (ASP.NET Core)
Priority One
EndpointNameMetadata
for minimal APIs via a first-class extension method #34538EndpointNameAttribute
to enable setting endpoint name declaratively #34539Map
overload is called passing aMethodGroup
#34540ProducesResponseTypeAttribute
to support setting content types for the defined response #34542Other
Issues (Swashbuckle)
Additional context
The goal is to allow for minimal APIs to support having metadata specified (manually in .NET 6, either imperatively via extension methods or declaratively via attributes, potentially automatically based on endpoint implementation and/or convention in a release after .NET 6) that enables the following to be satisfied by default when an OpenAPI library is also configured (i.e. without the OpenAPI library requiring further manual configuration):
operationId
in generated OpenAPI documents.LinkGenerator
to generate URL/links for endpointsExamples
Example of what specifying the metadata imperatively could look like:
Example of what specifying the metadata declaratively could look like:
The text was updated successfully, but these errors were encountered: