1ca2d2ccad
LoopBack REST adapter owns the whole URL space and does not let other middleware handle same URLs. It's possible to circumvent this measure by installing the explorer middleware before the REST middleware. |
||
---|---|---|
example | ||
public | ||
test | ||
.gitignore | ||
LICENSE | ||
README.md | ||
index.js | ||
package.json |
README.md
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(loopback.rest());
app.use('/explorer', explorer(app));
app.listen(3000);