api-provider-express
v3.1.1
Published
API provider for building api-core based APIs consumable via HTTP using the Express framework.
Downloads
53
Readme
api-provider-express
API provider for building api-core based APIs consumable via HTTP using the Express framework.
Installation
npm install api-provider-express
Usage
const express = require('express'),
ExpressApiRouter = require('api-provider-express').ExpressApiRouter;
const API = new Api(...);
const app = express(),
router = new ExpressApiRouter(API);
router.apply(app);
app.listen(8080);