C# Class NSwag.CodeGeneration.SwaggerGenerators.WebApi.WebApiAssemblyToSwaggerGenerator

Generates a SwaggerService from a Web API controller or type which is located in a .NET assembly.
Afficher le fichier Open project: NSwag/NSwag Class Usage Examples

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
GetAllReferencePaths ( WebApiAssemblyToSwaggerGeneratorSettings settings ) : string[]

Method Details

GenerateForControllers() public méthode

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.
Résultat SwaggerDocument

GetControllerClasses() public méthode

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[]
Résultat string[]

WebApiAssemblyToSwaggerGenerator() public méthode

Initializes a new instance of the WebApiAssemblyToSwaggerGenerator class.
public WebApiAssemblyToSwaggerGenerator ( WebApiAssemblyToSwaggerGeneratorSettings settings ) : System
settings WebApiAssemblyToSwaggerGeneratorSettings The generator settings.
Résultat System