Of course, you can - in two stages.
1) Include the Index.html file as an embedded resource in the assembly. For example, suppose your web api project is called "Contosco.Api" and Index.html will be under "/Content/Index.html" in this project.
2) Redefine the html UI front page with your own
[assembly: PreApplicationStartMethod(typeof(SwaggerConfig), "Register")] public class SwaggerConfig { public static void Register() { var thisAssembly = typeof(SwaggerConfig).Assembly; GlobalConfiguration.Configuration.EnableSwagger(c => {
Endrej swaydar
source share