-
Notifications
You must be signed in to change notification settings - Fork 3
/
swagger.js
25 lines (23 loc) · 973 Bytes
/
swagger.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
const swaggerJsdoc = require('swagger-jsdoc');
const options = {
definition: {
openapi: '3.0.0',
components: {
securitySchemes: {
ApiKeyAuth: {
type: 'apiKey',
in: 'header',
name: 'X-API-KEY'
},
}
},
info: {
title: 'IntelliServer APIs',
version: '0.2.0',
description: 'IntelliServer is a microservice framework providing a scalable interface to various AI tasks like chatting, semantic search, image generation, OCR, and beyond. It enables easy integration of various Large Models and other AI functionalities. Users can deploy IntelliServer locally or in the cloud and utilize its API to enhance their business applications with cutting-edge AI capabilities. You can use Intellinode cloud to upload your docs and augment the AI models with your data using one key concept.'
},
},
apis: ['./api/**/*.js'],
};
const specs = swaggerJsdoc(options);
module.exports = specs;