Page Contents
Home > @loopback/openapi-spec-builder > OperationSpecBuilder > withOperationName
OperationSpecBuilder.withOperationName() method
Define the operation name (controller method name).
Signature:
withOperationName(name: string): this;
Parameters
Parameter | Type | Description |
---|---|---|
name | string | The name of the controller method implementing this operation. |
Returns:
this