1.0.2 • Published 3 years ago

@brownsteven-fs/swagger_pkg v1.0.2

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

How to use

To add the Swagger Docs to your express API, install the library

npm install @brownsteven-fs/swagger_pkg

Add the following code to your Express's index.js

const getSwaggerMiddleware = require("@brownsteven-fs/swagger_pkg");
const { serveMiddleware, setupMiddleware } = getSwaggerMiddleware();
app.use("/api-docs", serveMiddleware, setupMiddleware);
1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago