0.7.0 • Published 2 years ago

koas-spec-handler v0.7.0

Weekly downloads
491
License
MIT
Repository
gitlab
Last release
2 years ago

Koas Spec Handler

Koas spec handler exposes the Open API document as a JSON API call.

Installation

npm install koa koas-core koas-spec-handler

Usage

const Koa = require('koa');
const { koas } = require('koas-core');
const { specHandler } = require('koas-spec-handler');

const api = require('./api.json');

const app = new Koa();
app.use(koas(api, [specHandler()]));

Options

Koas spec handler accepts one single argument. This is a string that specifies on which URL the Open API document is exposed. By default, it is exposed on /api.json.

0.7.0

2 years ago

0.6.0

3 years ago

0.5.4

3 years ago

0.5.5

3 years ago

0.5.3

3 years ago

0.5.2

3 years ago

0.5.1

4 years ago

0.5.0

4 years ago

0.4.1

4 years ago

0.4.0

4 years ago

0.3.0

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.11

6 years ago

0.1.10

6 years ago

0.1.8

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago