Page Contents
Home > @loopback/openapi-spec-builder > ComponentsSpecBuilder > withLink
ComponentsSpecBuilder.withLink() method
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