C# 클래스 NSwag.CodeGeneration.SwaggerGenerators.AssemblyTypeToSwaggerGenerator

Generates a SwaggerDocument from a Web API controller or type which is located in a .NET assembly.
상속: AssemblyTypeToSwaggerGeneratorBase
파일 보기 프로젝트 열기: NSwag/NSwag 1 사용 예제들

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
GetAllReferencePaths ( AssemblyTypeToSwaggerGeneratorSettings settings ) : string[]

메소드 상세

AssemblyTypeToSwaggerGenerator() 공개 메소드

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

Generate() 공개 메소드

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

GetClasses() 공개 메소드

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