0.0.4 • Published 2 years ago
koa-asyncapi v0.0.4
Koa AsyncAPI
Install
npm i @asyncapi/generator @asyncapi/html-template koa-asyncapi
Usage
import Koa from 'koa'
import { koaAsyncAPI } from 'koa-asyncapi'
const app = new Koa()
app.use(koaAsyncAPI())
app.listen(3000)
Middleware options
Option | Type | Default Value | Description |
---|---|---|---|
filePath | string? | 'asyncapi.yaml' | path to the AsyncAPI specification |
endpoint | string? | '/asyncapi' | endpoint where documentation will be available |