Browse and test your LoopBack app's APIs
Go to file
Shelby Sanders ed044468f7 Reverted to use special loading logic from loopback-explorer 2014-07-14 21:57:39 -07:00
example Initial explorer 2013-11-05 11:16:59 -08:00
public Reverted to use special loading logic from loopback-explorer 2014-07-14 21:57:39 -07:00
test Use `app.get('restApiRoot')` as default basePath 2014-01-07 16:56:58 +01:00
.gitignore Add indication of response being a collection 2014-07-09 03:36:41 -07:00
LICENSE Update to dual MIT/StrongLoop license 2014-02-17 16:04:12 -08:00
LoopBackExplorer.iml Upgraded to latest Swagger-UI for 1.2 support 2014-07-12 23:04:13 -07:00
README.md README: mount REST at /api in the sample code 2013-12-09 18:12:30 +01:00
index.js Make sure X-Powered-By header is disabled 2014-04-21 05:29:01 +03:00
package.json 1.1.1 2014-05-28 19:26:51 +02: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);