UNPKG

tanzania-universities-api

Version:
33 lines (30 loc) 783 B
const swaggerJSDoc = require('swagger-jsdoc'); const path = require('path'); const swaggerOptions = { definition: { openapi: '3.0.0', info: { title: 'Tanzania Universities API', version: '1.0.0', description: 'API for Tanzanian universities data', }, servers: [ { url: 'http://localhost:3000', description: 'Development server', }, ], components: { securitySchemes: { bearerAuth: { type: 'http', scheme: 'bearer', bearerFormat: 'JWT', }, }, }, }, apis: [path.join(__dirname, 'universityRoutes.js')], // Path to your routes file }; const swaggerSpec = swaggerJSDoc(swaggerOptions); module.exports = swaggerSpec;