Minimal API endpoints and Swagger?

The Litium.Web.WebApi.ApiCollectionAttribute attribute can be applied in combination with the Litium.Web.WebApi.IApiCollection interface to decorate API controllers, making them accessible through the Litium Swagger UI.

Is there a way to achieve the same functionality for minimal API endpoints?

Litium version: 8:18.0

1 Like

I guess no. The attribute can’t be added on the methods what I know about.

The ApiCollectionAttribute inheriting the Microsoft.AspNetCore.Mvc.ApiExplorer.IApiDescriptionGroupNameProvider and I think if you have another attribute or similar that implements the same, then it should work.

Thanks, Patric.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.