0.0.4 • Published 2 years ago

koa-asyncapi v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Koa AsyncAPI

CI Known Vulnerabilities Coverage Status js-standard-style

AsyncAPI middleware for koa

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

OptionTypeDefault ValueDescription
filePathstring?'asyncapi.yaml'path to the AsyncAPI specification
endpointstring?'/asyncapi'endpoint where documentation will be available