Package Exports
- loopback-explorer
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (loopback-explorer) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
loopback-explorer
Browse and test your LoopBack app's APIs.
Basic Usage
Below is a simple LoopBack application. The explorer is mounted at /explorer.
var loopback = require('loopback');
var app = loopback();
var explorer = require('loopback-explorer');
var Product = loopback.Model.extend('product');
Product.attachTo(loopback.memory());
app.model(Product);
app.use('/api', loopback.rest());
app.use('/explorer', explorer(app, { basePath: '/api' }));
app.listen(3000);