Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 303 Bytes

readme.md

File metadata and controls

10 lines (8 loc) · 303 Bytes

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))