1.0.11 • Published 4 years ago

@soluzioni-futura/docs-helper v1.0.11

Weekly downloads
-
License
ISC
Repository
github
Last release
4 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

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago