C# Class NSwag.CodeGeneration.SwaggerGenerators.AssemblyTypeToSwaggerGenerator

Generates a SwaggerDocument from a Web API controller or type which is located in a .NET assembly.
Inheritance: AssemblyTypeToSwaggerGeneratorBase
显示文件 Open project: NSwag/NSwag Class Usage Examples

Public Methods

Method Description
AssemblyTypeToSwaggerGenerator ( AssemblyTypeToSwaggerGeneratorSettings settings ) : System

Initializes a new instance of the AssemblyTypeToSwaggerGenerator class.

Generate ( string classNames ) : SwaggerDocument

Generates the Swagger definition for the given classes without operations (used for class generation).

GetClasses ( ) : string[]

Gets the available controller classes from the given assembly.

Private Methods

Method Description
GetAllReferencePaths ( AssemblyTypeToSwaggerGeneratorSettings settings ) : string[]

Method Details

AssemblyTypeToSwaggerGenerator() public method

Initializes a new instance of the AssemblyTypeToSwaggerGenerator class.
public AssemblyTypeToSwaggerGenerator ( AssemblyTypeToSwaggerGeneratorSettings settings ) : System
settings AssemblyTypeToSwaggerGeneratorSettings The settings.
return System

Generate() public method

Generates the Swagger definition for the given classes without operations (used for class generation).
public Generate ( string classNames ) : SwaggerDocument
classNames string The class names.
return SwaggerDocument

GetClasses() public method

Gets the available controller classes from the given assembly.
public GetClasses ( ) : string[]
return string[]