This is a fork of loopback-component-explorer version 4.2.0. We've basically removed some dependencies and make changes so that it supports oe-cloud project
Browse and test your oeCloud.io app's APIs.
Below is a simple LoopBack application. The explorer is mounted at
var loopback = ;var app = ;var explorer = ;var port = 3000;var Product = loopbackModel;Product;app;app;// Register explorer using component-centric API:;// Alternatively, register as a middleware:app;console;app;
Options are passed to
Sets the API's base path. This must be set if you are mounting your api to a path different than '/api', e.g. with `loopback.use('/custom-api-root', loopback.rest());
Set the path where to mount the explorer component.
A hard override for the outgoing protocol (
https) that is designated in Swagger resource documents. By default,
loopback-component-explorerwill write the protocol that was used to retrieve the doc. This option is useful if, for instance, your API sits behind an SSL terminator and thus needs to report its endpoints as
https, even though incoming traffic is auto-detected as
uiDirs: Array of Strings
Sets a list of paths within your application for overriding Swagger UI files.
If present, will search
uiDirsfirst when attempting to load Swagger UI, allowing you to pick and choose overrides to the interface. Use this to style your explorer or add additional functionality.
Additional information about your API. See the spec.
Sets a different path for the resource listing. You generally shouldn't have to change this.
Default: Read from package.json
Sets your API version. If not present, will read from your app's package.json.