C# Класс NSwag.CodeGeneration.CodeGenerators.OperationNameGenerators.SingleClientFromOperationIdOperationNameGenerator

Generates the client and operation name based on the Swagger operation ID.
Наследование: IOperationNameGenerator
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

GetClientName() публичный Метод

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.
Результат string

GetOperationName() публичный Метод

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.
Результат string