Browse and test your LoopBack app's APIs
Go to file
Miroslav Bajtoš 2d15b9c052 Bump up loopback min version to 1.5 2014-01-14 08:34:34 +01:00
example Initial explorer 2013-11-05 11:16:59 -08:00
public Support custom basePath 2013-11-29 16:26:16 +01:00
test Use `app.get('restApiRoot')` as default basePath 2014-01-07 16:56:58 +01:00
.gitignore Initial commit 2013-11-05 09:59:05 -08:00
LICENSE Initial commit 2013-11-05 09:59:05 -08:00
README.md README: mount REST at /api in the sample code 2013-12-09 18:12:30 +01:00
index.js Use `app.get('restApiRoot')` as default basePath 2014-01-07 16:56:58 +01:00
package.json Bump up loopback min version to 1.5 2014-01-14 08:34:34 +01:00

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('/api', loopback.rest());
app.use('/explorer', explorer(app, { basePath: '/api' }));

app.listen(3000);