首页用户活动客户端飞行计划服务器文件
首页用户活动客户端飞行计划服务器文件
访问Github页面
  1. 服务器
  • 获取服务器配置信息
    GET
  1. 服务器

获取服务器配置信息

GET
http://127.0.0.1:6810/api/server/config
责任人:未设置

请求参数

无

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://127.0.0.1:6810/api/server/config'

返回响应

🟢200200 Ok
application/json
Body

示例
{
    "code": "GET_SERVER_CONFIG",
    "message": "成功获取服务器配置",
    "data": {
        "limits": {
            "username_length_min": 4,
            "username_length_max": 16,
            "password_length_min": 6,
            "password_length_max": 64,
            "email_length_min": 4,
            "email_length_max": 64,
            "cid_min": 1,
            "cid_max": 9999,
            "simulator_server": true
        },
        "facilities": [
            {
                "id": 0,
                "short_name": "Pilot",
                "long_name": "Pilot"
            },
            {
                "id": 1,
                "short_name": "OBS",
                "long_name": "Observer"
            },
            {
                "id": 2,
                "short_name": "DEL",
                "long_name": "Clearance Delivery"
            },
            {
                "id": 3,
                "short_name": "GND",
                "long_name": "Ground"
            },
            {
                "id": 4,
                "short_name": "TWR",
                "long_name": "Tower"
            },
            {
                "id": 5,
                "short_name": "APP",
                "long_name": "Approach/Departure"
            },
            {
                "id": 6,
                "short_name": "CTR",
                "long_name": "Enroute"
            },
            {
                "id": 7,
                "short_name": "FSS",
                "long_name": "Flight Service Station"
            }
        ],
        "ratings": [
            {
                "id": -1,
                "short_name": "Baned",
                "long_name": "Suspended"
            },
            {
                "id": 0,
                "short_name": "Normal",
                "long_name": "Normal"
            },
            {
                "id": 1,
                "short_name": "OBS",
                "long_name": "Observer"
            },
            {
                "id": 2,
                "short_name": "S1",
                "long_name": "Tower Trainee"
            },
            {
                "id": 3,
                "short_name": "S2",
                "long_name": "Tower Controller"
            },
            {
                "id": 4,
                "short_name": "S3",
                "long_name": "Senior Student"
            },
            {
                "id": 5,
                "short_name": "C1",
                "long_name": "Enroute Controller"
            },
            {
                "id": 6,
                "short_name": "C2",
                "long_name": "Controller 2 (not in use)"
            },
            {
                "id": 7,
                "short_name": "C3",
                "long_name": "Senior Controller"
            },
            {
                "id": 8,
                "short_name": "I1",
                "long_name": "Instructor"
            },
            {
                "id": 9,
                "short_name": "I2",
                "long_name": "Instructor 2 (not in use)"
            },
            {
                "id": 10,
                "short_name": "I3",
                "long_name": "Senior Instructor"
            },
            {
                "id": 11,
                "short_name": "SUP",
                "long_name": "Supervisor"
            },
            {
                "id": 12,
                "short_name": "ADM",
                "long_name": "Administrator"
            }
        ]
    }
}
🟠400请求参数有误
🟠429请求次数过多
🟠400缺少请求参数
修改于 2025-08-16 09:05:13
Built with