1.0.11 • Published 3 years ago

@soluzioni-futura/docs-helper v1.0.11

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Setup

Run the following command:

$ npm i @soluzioni-futura/docs-helper

Usage

import { OpenAPIV3 }, DocsHelperRouter from "@soluzioni-futura/docs-helper"
import definition from "./definition.json"
import express from "express"

const app = express()

/* ... */

app.use(DocsHelperRouter({
    definition: definition as OpenAPIV3.Document,
    endpoint: "/docs"
}))

app.listen(8000, () => {
    console.log("App is listening on port 8000!")
})

Check http://localhost:8000/docs

The definition can be provided by local path

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago