C# 클래스 NSwag.CodeGeneration.SwaggerGenerators.WebApi.WebApiAssemblyToSwaggerGenerator

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

공개 메소드들

메소드 설명
GenerateForControllers ( IEnumerable controllerClassNames ) : SwaggerDocument

Generates the Swagger definition for all controllers in the assembly.

GetControllerClasses ( ) : string[]

Gets the available controller classes from the given assembly.

WebApiAssemblyToSwaggerGenerator ( WebApiAssemblyToSwaggerGeneratorSettings settings ) : System

Initializes a new instance of the WebApiAssemblyToSwaggerGenerator class.

비공개 메소드들

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

메소드 상세

GenerateForControllers() 공개 메소드

Generates the Swagger definition for all controllers in the assembly.
No assembly paths have been provided.
public GenerateForControllers ( IEnumerable controllerClassNames ) : SwaggerDocument
controllerClassNames IEnumerable The controller class names.
리턴 SwaggerDocument

GetControllerClasses() 공개 메소드

Gets the available controller classes from the given assembly.
The assembly could not be found. The assembly config file could not be found.. No assembly paths have been provided.
public GetControllerClasses ( ) : string[]
리턴 string[]

WebApiAssemblyToSwaggerGenerator() 공개 메소드

Initializes a new instance of the WebApiAssemblyToSwaggerGenerator class.
public WebApiAssemblyToSwaggerGenerator ( WebApiAssemblyToSwaggerGeneratorSettings settings ) : System
settings WebApiAssemblyToSwaggerGeneratorSettings The generator settings.
리턴 System