| 123456789101112131415161718192021222324252627282930 |
- const pkg = require('../package.json');
- const apiVersion = process.env.API_VERSION || 3;
- module.exports = {
- openapi: '3.0.1',
- info: {
- title: `GROWI REST API v${apiVersion}`,
- version: pkg.version,
- },
- servers: [
- {
- url: 'https://demo.growi.org',
- },
- ],
- security: [
- {
- api_key: [],
- },
- ],
- components: {
- securitySchemes: {
- api_key: {
- type: 'apiKey',
- name: 'access_token',
- in: 'query',
- },
- },
- },
- };
|