1

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?

Chris.ZA
  • 1,218
  • 1
  • 15
  • 30
cviktor
  • 88
  • 5
  • Where do you want to edit the list of endpoints? See [this](https://stackoverflow.com/questions/52784268/is-it-possible-to-dynamically-add-swaggerendpoints-for-swaggerui) – Roman Marusyk Oct 16 '18 at 21:59
  • Fair suggestion I will try it. I tought that if you configure it once, it will load every resource on startup, and if I change the options after, then it has no effect. – cviktor Oct 16 '18 at 22:12

0 Answers0