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

Generates multiple clients and operation names based on the Swagger operation ID (underscore separated).
Наследование: 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 operation name for a given operation.

Приватные методы

Метод Описание
GetClientName ( SwaggerOperation operation ) : string
GetOperationName ( SwaggerOperation operation ) : string

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

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