const swaggerAutogen = require('swagger-autogen')({openapi: '3.0.0'}); const doc = { info: { title: 'Dolgozók REST API', description: 'Teszt' }, servers: [ { url: 'http://localhost:8000/api', description: '' } ] }; const outputFile = './swagger-output.json'; const routes = ['./app/routes/api.js']; swaggerAutogen(outputFile, routes, doc);