I am trying to create a service to show multiple Swagger documentations from different microservices. I am using Asp.NET Core with the Swashbuckle.AspNetCore package. I can very easily configure multiple endpoints on startup with the following lines.
app.UseSwaggerUI(options =>
{
options.SwaggerEndpoint("url1", "Name 1");
options.SwaggerEndpoint("url2", "Name 2");
});
My problem is that I want the ability to dynamically edit the list of endpoints without the need to restart the service. Is there any way to achieve this with the Swashbuckle.AspNetCore or with anything else?