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

Generates multiple clients and operation names based on the Swagger operation ID (underscore separated).
Inheritance: IOperationNameGenerator
Afficher le fichier Open project: NSwag/NSwag

Méthodes publiques

Méthode 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 operation name for a given operation.

Private Methods

Méthode Description
GetClientName ( SwaggerOperation operation ) : string
GetOperationName ( SwaggerOperation operation ) : string

Method Details

GetClientName() public méthode

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

GetOperationName() public méthode

Gets the operation 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.
Résultat string