Answers for "swagger dark theme"

C#
0

swagger dark theme

//In Configure()
app.UseStaticFiles();

app.UseSwaggerUI(c =>
{
    c.SwaggerEndpoint("/swagger/v1/swagger.json", "MyAPI");
    c.InjectStylesheet("/swagger-ui/SwaggerDark.css");
});

/*Folder structure

wwwroot/
   └──swagger-ui/
      └── SwaggerDark.css
*/
Posted by: Guest on August-01-2021

C# Answers by Framework

Browse Popular Code Answers by Language