Page Contents

Home > @loopback/rest > RestServer > oasEnhancerService

RestServer.oasEnhancerService property

Handle incoming HTTP(S) request by invoking the corresponding Controller method via the configured Sequence.

Signature:

protected oasEnhancerService: OASEnhancerService;

Example

const app = new Application();
app.component(RestComponent);
// setup controllers, etc.

const restServer = await app.getServer(RestServer);
const httpServer = http.createServer(restServer.requestHandler);
httpServer.listen(3000);