Skip to content

This library makes ocelot easy to integrate swagger

License

Notifications You must be signed in to change notification settings

Rwing/OcelotSwagger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

689a355 · Aug 7, 2019

History

29 Commits
Jul 18, 2019
Jul 18, 2019
Sep 10, 2018
Jul 18, 2019
Sep 7, 2018
Sep 7, 2018
Aug 7, 2019
Sep 10, 2018
Jul 14, 2019
Jul 18, 2019
Jul 12, 2019

Repository files navigation

OcelotSwagger

NuGet

This library makes ocelot easy to integrate swagger

Installation

Install-Package OcelotSwagger

Usage

In method ConfigureServices

// Load options from code
services.AddOcelotSwagger(c =>
{
    c.Cache.Enabled = true;
    c.SwaggerEndPoints.Add(new SwaggerEndPoint { Name = "Api Name", Url = "/path/swagger.json" });
});

Or

// Load options from appsettings.json
services.Configure<OcelotSwaggerOptions>(this.configuration.GetSection(nameof(OcelotSwaggerOptions)));
services.AddOcelotSwagger();

In method Configure

app.UseOcelotSwagger();

TODO

  • Cache

Contributor

@Cyril MARTY (https://github.com/DotNetConcept)

About

This library makes ocelot easy to integrate swagger

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages