-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
AspNetCoreToOpenApiCommand
Rico Suter edited this page Jun 6, 2019
·
1 revision
Either provide a Project or Assembly with an ASP.NET Core Startup
class.
We recommend to not use any settings beside assembly/project settings and specify one of the documents which are added with AddOpenApiDocument(document => document.DocumentName = "v1")
or AddSwaggerDocument()
and configure the document in your web app code.
Then generate the document via CLI:
aspnetcore2openapi /assembly:MyAspNetCoreApp.dll /documentName:v1 /output:swagger.json
The command is based on the AspNetCoreOpenApiDocumentGenerator.
Important for .NET Core: Assembly loading.