Page Contents

Home > @loopback/openapi-spec-builder > ComponentsSpecBuilder > withLink

Define a component link.

Signature:

withLink(name: string, link: LinkObject | ReferenceObject): this;

Parameters

Parameter Type Description
name string The name of the link
link LinkObject | ReferenceObject Specification of the link

Returns:

this