-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathdocs-config.js
87 lines (84 loc) · 2.26 KB
/
docs-config.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
"use strict";
/**
*
*/
const docs_config = {
openapi: "3.0.3",
basePath: "/",
schemes: ["http", "https"],
info: {
title: "BFBAN backend V2 API document",
version: ">2.0.0",
description: "bfban back-end interface documentation, any questions please to github\"s bfban repository questions",
contact: {
email: "[email protected]",
name: "API Support"
},
license: {
name: "MIT License",
url: "https://github.com/BFBAN/bfban-website/blob/master/LICENSE"
}
},
servers: [
{
"url": "{protocol}://{environment}.bfban.com",
"description": "main hosting service",
"variables": {
"environment": {
"enum": [
"api",
"api.dev",
],
"default": "api"
},
"protocol": {
"enum": [
"http",
"https",
],
"default": "https"
},
}
},
{
"url": "{protocol}://localhost:{port}",
"description": "local host",
"variables": {
"port": {
"enum": [
"3000",
"3001",
"3002",
"3003",
"3004",
],
"default": "3000"
},
"protocol": {
"enum": [
"http",
"https",
],
"default": "http"
},
}
},
],
tags: [],
components: {
"securitySchemes": {
"appToken": {
"type": "apiKey",
"name": "x-access-token",
"description": "This value is an account identity token",
"in": "header"
},
"appId": {
"type": "apiKey",
"name": "x-app-id",
"in": "header"
}
},
},
}
export default docs_config;