diff options
Diffstat (limited to 'goodgame/src/utils/swagger.js')
-rw-r--r-- | goodgame/src/utils/swagger.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/goodgame/src/utils/swagger.js b/goodgame/src/utils/swagger.js new file mode 100644 index 0000000..7b1cf80 --- /dev/null +++ b/goodgame/src/utils/swagger.js @@ -0,0 +1,18 @@ +const swaggerJSDoc = require('swagger-jsdoc'); + +const swaggerDefinition = { + info: { + title: 'Goodgame test / Roger Gonzalez', + version: '0.0.1', + description: + 'This is the REST Documentation for the Goodgame application test', + }, + host: `${process.env.URL}`, +}; + +const options = { + swaggerDefinition, + apis: ['./src/docs/**/*.yaml'], +}; + +module.exports = swaggerJSDoc(options); |