Page Contents

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

OperationSpecBuilder.withStringResponse() method

Signature:

withStringResponse(status?: number | 'default'): this;

Parameters

Parameter Type Description
status number | ‘default’ (Optional)

Returns:

this