api-core-mapper
v3.1.1
Published
Generate swagger documentation for your api-core API.
Downloads
24
Readme
API Mapper
Generate swagger.json for your api-core API.
For example using Express and ApiProvider:
const swaggerProvider = require("api-core-mapper").ApiSwaggerProvider;
const swagger = api.provide(swaggerProvider).map();
app.get('/swagger.json', (req, res) => res.send(swagger))