Page Contents

Home > @loopback/rest > RestServerResolvedOptions

RestServerResolvedOptions interface


export interface RestServerResolvedOptions 


Property Type Description
apiExplorer ApiExplorerOptions  
basePath? string (Optional) Base path for API/static routes
cors cors.CorsOptions  
expressSettings { [name: string]: any; }  
listenOnStart? boolean (Optional) Set this flag to false to not listen on connections when the REST server is started. It’s useful to mount a LoopBack REST server as a route to the facade Express application. If not set, the value is default to true.
openApiSpec OpenApiSpecOptions  
path? string (Optional)
port number  
requestBodyParser? RequestBodyParserOptions (Optional)
router RestRouterOptions  
sequence? Constructor<SequenceHandler> (Optional)