This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.NSwag.
Summary
Generates a C# API client at the given path with the specified settings
- Assembly
- Cake
.NSwag .dll - Namespace
- Cake
.NSwag .Sources - Containing Type
- SwaggerSource
Syntax
public SwaggerSource ToCSharpClient(FilePath outputFile, string fullClientPath, Action<CSharpGeneratorSettings> configure = null)
Examples
NSwag.FromSwaggerSpecification("./swagger.json").ToCSharpClient("./client.cs", "Swagger.Client");
Parameters
Name | Type | Description |
---|---|---|
outputFile | FilePath | File path for the generated client code |
fullClientPath | string | The fully qualified class name (including namespace) for the client |
configure | Action |
Optional settings to further control the code generation process |
Return Value
Type | Description |
---|---|
SwaggerSource | The metadata source |