Skip to content

waxtell/Swashbuckle.Servers.Extension

Repository files navigation

Swashbuckle.Servers.Extension

Specify the collection of servers for your API

(Servers collection will be included when using Swashbuckle.AspNetCore.Cli)

Configuring the servers at startup:

            services.AddSwaggerGen(c =>
            {
                c.WithServers
                (
                    new List<OpenApiServer>
                    {
                        new OpenApiServer { Url = "http://localhost:5000" },
                        new OpenApiServer { Url = "https://www.yourcustomdomain.com" }
                    }
                );

About

Allows for the specification of the API Servers collection

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors 2

  •  
  •  

Languages