api-provider-express

API provider for building api-core based APIs consumable via HTTP using the Express framework.

Usage no npm install needed!

<script type="module">
  import apiProviderExpress from 'https://cdn.skypack.dev/api-provider-express';
</script>

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);