Skip to content

[F] getHttpOperation

function getHttpOperation(
program,
operation,
options?): [HttpOperation, readonly Diagnostic[]]

Return the Http Operation details for a given TypeSpec operation.

Parameters

ParameterTypeDescription
programProgram-
operationOperationOperation
options?RouteResolutionOptionsOptional option on how to resolve the http details.

Returns

[HttpOperation, readonly Diagnostic[]]