4.0.0-alpha.0 • Published 1 year ago

@axa/bautajs-express v4.0.0-alpha.0

Weekly downloads
-
License
SEE LICENSE IN LI...
Repository
github
Last release
1 year ago

bautajs-express

A Express.js plugin for Bauta.js.

How to install

  npm install @axa/bautajs-express

Usage

const express = require('express');
const { BautaJSExpress } = require('@axa/express');
const apiDefinition = require('../../api-definition.json');

const app = express();
const bautaJSExpress = new BautaJSExpress({ apiDefinition });
const router = await bautaJSExpress.buildRouter();

app.use('/v1', router);

app.listen(3000, err => {
  if (err) throw err;
  console.info('Server listening on localhost: 3000');
});

See a full example on Example of a project from scratch.

Validation

Fastify has an out-of-the-box request validation, therefore the builtin Bauta.js request validations are disabled on this plugin.

Legal Notice

Copyright (c) AXA Group. All rights reserved. Licensed under the (MIT / Apache 2.0) License.

Third party dependencies licenses

Production

Development

4.0.0-alpha.0

1 year ago

3.1.0

1 year ago

3.0.1

2 years ago

3.0.0

2 years ago

2.3.0

2 years ago

2.2.2

2 years ago

3.0.0-alpha.1

2 years ago

3.0.0-alpha.2

2 years ago

2.2.1

2 years ago

2.2.0

2 years ago

2.1.0-beta.0

3 years ago

2.1.0

2 years ago

2.0.1

3 years ago

2.0.0-alpha.0

3 years ago

2.0.0-alpha.1

3 years ago

2.0.0

3 years ago

1.0.0

3 years ago