mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
22 lines
561 B
TypeScript
22 lines
561 B
TypeScript
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
const swaggerAutogen = require('swagger-autogen')({ openapi: '3.0.0' });
|
|
|
|
const doc = {
|
|
info: {
|
|
title: 'Infisical API',
|
|
description: 'List of all available APIs that can be consumed',
|
|
},
|
|
host: ['https://infisical.com'],
|
|
securityDefinitions: {
|
|
bearerAuth: {
|
|
type: 'http',
|
|
scheme: 'bearer',
|
|
bearerFormat: 'JWT'
|
|
}
|
|
}
|
|
};
|
|
|
|
const outputFile = './api-documentation.json';
|
|
const endpointsFiles = ['./src/app.ts'];
|
|
|
|
swaggerAutogen(outputFile, endpointsFiles, doc); |