C# Class NSwag.CodeGeneration.CodeGenerators.OperationNameGenerators.MultipleClientsFromPathSegmentsOperationNameGenerator

Generates the client and operation name based on the path segments (operation name = last segment, client name = second to last segment).
Inheritance: IOperationNameGenerator
Mostrar archivo Open project: NSwag/NSwag

Public Methods

Method Description
GetClientName ( SwaggerDocument document, string path, SwaggerOperationMethod httpMethod, SwaggerOperation operation ) : string

Gets the client name for a given operation.

GetOperationName ( SwaggerDocument document, string path, SwaggerOperationMethod httpMethod, SwaggerOperation operation ) : string

Gets the client name for a given operation.

Method Details

GetClientName() public method

Gets the client name for a given operation.
public GetClientName ( SwaggerDocument document, string path, SwaggerOperationMethod httpMethod, SwaggerOperation operation ) : string
document SwaggerDocument The Swagger document.
path string The HTTP path.
httpMethod SwaggerOperationMethod The HTTP method.
operation SwaggerOperation The operation.
return string

GetOperationName() public method

Gets the client name for a given operation.
public GetOperationName ( SwaggerDocument document, string path, SwaggerOperationMethod httpMethod, SwaggerOperation operation ) : string
document SwaggerDocument The Swagger document.
path string The HTTP path.
httpMethod SwaggerOperationMethod The HTTP method.
operation SwaggerOperation The operation.
return string