Skip to content

R-Suite/ServiceConnect.WebApiGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ServiceConnect.WebApiGenerator

WebApiGenerator is a ServiceConnect extension that generates Swagger UI exposing every handler as an Action Method in ASP.NET Core MVC controller.

Usage

To use WebApiGenerator simply install the latest version of ServiceConnect.WebApiGenerator from Nuget.org and invoke the Bus extension method - RunWebApiHost()

static void Main(string[] args)
{
    var bus = Bus.Initialize();
    
    bus.RunWebApiHost();
}

You can then access the Swagger UI at http://localhost:5000/swagger/

Custom url can be passed as a parameter to RunWebApiHost().

bus.RunWebApiHost("http://localhost:5050");

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published