-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Home
Rico Suter edited this page Oct 24, 2016
·
138 revisions
- Command Line
-
NSwagStudio
- Swagger specification via URL or from a .NET assembly (no running web app needed)
- ASP.NET HTTP Middlewares
- MSBuild
- T4 templates
- Integrate the NSwag toolchain into your ASP.NET Web API project
- Generate an Angular 2 TypeScript client from an existing ASP.NET Web API web assembly
The NSwag Swagger generator uses the JSON Schema generator from the NJsonSchema project.
-
XML Documentation (NJsonSchema)
- The
NSwag.AspNetCoreNuGet package automatically installs the required NuGet packages for reading XML Documentation.
- The
- Enums (NJsonSchema)
- Inheritance (NJsonSchema): Add custom properties to the generated JSON objects (e.g. "x-documentation-link").
- Type Mappers (NJsonSchema): Type mappers allow you to generate a custom JSON Schema for a given .NET type.
Package: NSwag.Core
Package: NSwag.CodeGeneration
-
Swagger Generators:
- WebApiToSwaggerGenerator: ASP.NET Web API to Swagger
-
Code Generators:
- SwaggerToTypeScriptClientGenerator: TypeScript Client
- SwaggerToCSharpClientGenerator: CSharp Client
- SwaggerToCSharpControllerGenerator: CSharp WebAPI Controllers (contract first/schema first development)
Package: NSwag.AssemblyLoader
-
Swagger Generators:
- WebApiAssemblyToSwaggerGenerator: ASP.NET Web API to Swagger
- AssemblyTypeToSwaggerGenerator: Types from .NET assemblies