Add Swagger UI to a custom .NET Web API
问题 I want to integrate Swagger UI into my C# .Net Web API project. This is different from a traditional Web API project where you can install a tool like SwashBuckle, which then picks up the HTTP routes defined in your controller classes and creates the UI. What I have is a custom implementation which generates the OpenAPI/Swagger 3.0 yaml files for different routes. I have a route defined in a generic controller file which accepts a variable - http://localhost:8000/myapp/swagger/{document_name}