Skip to content

1 Getting Started

HelderSepu edited this page Jul 22, 2017 · 2 revisions

Just install the Nuget package.

Once installed and enabled, you should be able to browse the following Swagger docs and UI endpoints respectively:

<your-root-url>/swagger/docs/v1

<your-root-url>/swagger

Self-hosted

Manually enable the Swagger docs and, optionally, the swagger-ui by invoking the following extension methods on an instance of HttpConfiguration (e.g. in Program.cs)

httpConfiguration
     .EnableSwagger(c => c.SingleApiVersion("v1", "A title for your API"))
     .EnableSwaggerUi();

OWIN

Manually enable the Swagger docs and swagger-ui by invoking the extension methods on an instance of HttpConfiguration (e.g. in Startup.cs)

httpConfiguration
    .EnableSwagger(c => c.SingleApiVersion("v1", "A title for your API"))
    .EnableSwaggerUi();    
Clone this wiki locally