Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Change Swagger UI Page #4155


User avatar
0
ajayak created

Hi,

I see that swagger is configured in Web.Host project as follows:

app.UseSwaggerUI(options =>
            {
                options.SwaggerEndpoint("/swagger/v1/swagger.json", "PrimePenguin API V1");
            });

Web.Host project also contains wwwroot/swagger/ui/index.html. How can I configure Swagger UI to use that index.html file?


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    According to this issue <a class="postlink" href="https://github.com/domaindrivendev/Swashbuckle.AspNetCore/issues/527">https://github.com/domaindrivendev/Swas ... issues/527</a>, you need to place it like this:

    wwwroot/swagger/index.html