Both Swashbuckle and NSwag include an embedded version of Swagger UI, so that it can be hosted in your ASP.NET Core app using a middleware registration call. The web UI looks like this:
After reviewing your snippet, the main issue is similar to the previous one: Swashbuckle v10 requires a delegate for AddSecurityRequirement, and for OAuth2 you also need to include the scopes that your API expects.
The Swashbuckle.AspNetCore.SwaggerUi package provides a bundle of Swagger UI's web assets for use in apps. This package can be used to render a UI for the generated document.
Hello 👋🏼 colleague @Anonymous To enable OpenAPI v3 in Azure Function isolated model with .NET 8.0, you can use the Swashbuckle.AspNetCore NuGet package. Here are the steps to achieve this: Add the Swashbuckle.AspNetCore NuGet package to your project. In your Startup.cs file, add the following code to the ConfigureServices method:
Check the published file path, make sure the path or folder name not contains the spaces. Install the Swashbuckle.AspNetCore.SwaggerGen package. Ref: discussion thread I have also added additional relevant tags to receive insights from the targetted audience/SMEs. Kindly let us know, I'll follow-up with you further.
Swashbuckle.AspNetCore.SwaggerGen.SwaggerGeneratorException: Failed to generate Operation for action - API.Controllers.OrdersController.GetOrdersForUser (API). See inner exception
To confirm that Swashbuckle is generating OpenAPI with descriptions for the RESTful gRPC services, start the app and navigate to the Swagger UI page: Additional resources