Page Contents

Home > @loopback/rest > RestServer > addOpenApiSpecEndpoint

RestServer.addOpenApiSpecEndpoint() method

Add a new non-controller endpoint hosting a form of the OpenAPI spec.

Signature:

addOpenApiSpecEndpoint(path: string, form: OpenApiSpecForm): void;

Parameters

Parameter Type Description
path string  
form OpenApiSpecForm  

Returns:

void