Page Contents

Home > @loopback/openapi-spec-builder > OperationSpecBuilder > withParameter

OperationSpecBuilder.withParameter() method

Describe one more parameters accepted by the operation. Note that parameters are positional in OpenAPI Spec, therefore the first call of withParameter defines the first parameter, the second call defines the second parameter, etc.

Signature:

withParameter(...parameterSpecs: ParameterObject[]): this;

Parameters

Parameter Type Description
parameterSpecs ParameterObject[]  

Returns:

this