1.0.1 • Published 7 years ago

owin-oas-generator v1.0.1

Weekly downloads
5
License
MIT
Repository
github
Last release
7 years ago

Owin.Oas.Generator

Command line tool for the retrieval of OAS from an Owin hosted web api.

Build status

Install the nuget package and add the following MSBuild task to your api .csproj (updating the assembly and Startup names to suit):

  <Target Name="Oas" AfterTargets="Build">
    <Exec Command="$(OasGenExe) ^
      --assembly $(ProjectDir)$(OutDir)MyOwinAssembly.dll ^
      --startup MyOwinAssembly.Startup ^
      --output $(OutDir)\swagger.json ^
      --referencepaths $(ProjectDir)$(OutDir) ^
      --base $(ProjectDir) ^
      --headers &quot;Authorization:Basic dXNlcm5hbWU6cGFzc3dvcmQ=&quot;" 
    />
  </Target>

or execute directly from a command prompt:

Owin.Oas.Generator.ese --assembly .\bin\MyOwinAssembly.dll --startup MyOwinAssembly.Startup --output .\bin\swagger.json --referencepaths .\bin --base . --headers "Authorization:Basic dXNlcm5hbWU6cGFzc3dvcmQ=" 
1.0.1

7 years ago

1.0.0

7 years ago