Files
planka/server/config/swagger.js

44 lines
999 B
JavaScript
Raw Normal View History

2025-09-08 17:41:43 +02:00
/*!
* Copyright (c) 2024 PLANKA Software GmbH
* Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md
*/
const version = require('../version');
module.exports = {
definition: {
openapi: '3.0.0',
info: {
version,
title: 'PLANKA API',
description:
'API documentation for PLANKA - Real-time Collaborative Kanban Board Application',
license: {
name: 'Fair Use License',
url: 'https://github.com/plankanban/planka/blob/master/LICENSE.md',
},
},
servers: [
{
url: '/api',
description: 'Base path for API endpoints',
},
],
2025-09-12 12:17:01 +02:00
components: {
securitySchemes: {
bearerAuth: {
type: 'http',
scheme: 'bearer',
bearerFormat: 'JWT',
},
},
},
security: [
{
bearerAuth: [],
},
],
2025-09-08 17:41:43 +02:00
},
apis: ['./api/controllers/**/*.js', './api/models/*.js', './api/responses/*.js'],
};