This library makes ocelot easy to integrate swagger
Install-Package OcelotSwagger
In method ConfigureServices
services.AddOcelotSwagger();
In method Configure
app.UseOcelotSwagger(c =>
{
c.SwaggerEndPoints.Add(new SwaggerEndPoint { Name = "Api Name", Url = "/path/swagger.json" });
});
- Cache