@loopback/rest
Version:
Expose controllers as REST endpoints and route REST API requests to controller methods
38 lines (37 loc) • 1.24 kB
TypeScript
/**
* The REST API package for loopback-next.
*
* @remarks
* A REST server for LoopBack 4 application instances, complete with:
*
* - new custom routing engine (special thanks to @bajtos)!
* - tools for defining your application routes
* - OpenAPI 3.0 spec (openapi.json/openapi.yaml) generation using
* @loopback/openapi-v3
* - a default sequence implementation to manage the request and response
* lifecycle
*
*
* @packageDocumentation
*/
export * from '@loopback/openapi-v3';
export { ErrorHandlerOptions, ErrorWriterOptions, StrongErrorHandler, writeErrorToResponse, } from 'strong-error-handler';
export * from './body-parsers';
export * from './http-handler';
export * from './keys';
export * from './parse-json';
export * from './parser';
export * from './providers';
export * from './request-context';
export * from './rest-http-error';
export * from './rest.application';
export * from './rest.component';
export * from './rest.server';
export * from './router';
export * from './sequence';
export * from './spec-enhancers/info.spec-enhancer';
export * from './types';
export * from './validation/request-body.validator';
export * from './writer';
export { HttpErrors };
import HttpErrors from 'http-errors';