-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Home
Rico Suter edited this page Feb 2, 2017
·
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
- SwaggerDocument: The .NET class describing a Swagger specification
- WebApiToSwaggerGenerator: Generate a Swagger specification from Web API controller classes
- WebApiAssemblyToSwaggerGenerator: Generate a Swagger specification from a Web API assembly
The Swagger generators use the JSON Schema generator from the NJsonSchema project:
- JsonSchemaGenerator (NJsonSchema): Generates schemas from .NET classes
-
XML Documentation (NJsonSchema)
- The
NSwag.AspNetCoreNuGet package automatically installs the required NuGet packages for reading XML Documentation.
- The
- Enums (NJsonSchema)
- Inheritance (NJsonSchema): How to describe and generate inheritance of DTO classes.
- Type Mappers (NJsonSchema): Type mappers allow you to generate a custom JSON Schema for a given .NET type.
- SwaggerToTypeScriptClientGenerator: Generate TypeScript clients
- SwaggerToCSharpClientGenerator: Generate CSharp clients
- SwaggerToCSharpControllerGenerator: Generate CSharp Web API controllers (contract first/schema first development)
Extension points: