Add support for setting ApiDescriptor.GroupName for minimal APIs #34443
Labels
api-suggestion
Early API idea and discussion, it is NOT ready for implementation
area-minimal
Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc
feature-minimal-actions
Controller-like actions for endpoint routing
Priority:1
Work that is critical for the release, but we could probably ship without
Milestone
Uh oh!
There was an error while loading. Please reload this page.
Minimal APIs currently don't populate any value for the
ApiDescriptor.GroupName
property. We should add support for setting the group name via endpoint metadata and flowing that through to theApiDescriptor
, e.g.:Setting it by default
Swashbuckle currently uses
ApiDescriptor.GroupName
in its default API inclusion predicate in such a way that if we were to set a default value that doesn't match the configured Swagger document name, the APIs would not be included by default. For that reason it seems like we shouldn't set a default value forApiDescriptor.GroupName
unless we also update the Swashbuckle logic.@bradygaster
The text was updated successfully, but these errors were encountered: