mirror of
https://github.com/kuitoi/kuitoi-Server.git
synced 2025-07-01 23:35:31 +00:00
[-] WebAPI
This commit is contained in:
parent
85475a49be
commit
71ec0c7aed
@ -21,9 +21,6 @@
|
|||||||
"GUI_enter_key_message": "请输入密钥:",
|
"GUI_enter_key_message": "请输入密钥:",
|
||||||
"GUI_cannot_open_browser": "无法打开浏览器。\n请使用此链接:{}",
|
"GUI_cannot_open_browser": "无法打开浏览器。\n请使用此链接:{}",
|
||||||
|
|
||||||
"": "Web阶段",
|
|
||||||
"web_start": "WebAPI已启动{}(CTRL+C停止)",
|
|
||||||
|
|
||||||
"": "命令:man",
|
"": "命令:man",
|
||||||
"man_message_man": "man - 显示COMMAND的帮助页面。\n用法:man COMMAND",
|
"man_message_man": "man - 显示COMMAND的帮助页面。\n用法:man COMMAND",
|
||||||
"help_message_man": "显示COMMAND的帮助页面。",
|
"help_message_man": "显示COMMAND的帮助页面。",
|
||||||
|
@ -6,5 +6,4 @@
|
|||||||
2. 插件和事件系统 - [这里](./plugins)
|
2. 插件和事件系统 - [这里](./plugins)
|
||||||
3. Lua的细微差别 - [这里](./plugins/lua)
|
3. Lua的细微差别 - [这里](./plugins/lua)
|
||||||
4. 多语言支持 - [这里](./multilanguage)
|
4. 多语言支持 - [这里](./multilanguage)
|
||||||
5. KuiToi WebAPI - [这里](./web)
|
5. 将会有新的内容...
|
||||||
6. 将会有新的内容...
|
|
@ -49,11 +49,6 @@ Server:
|
|||||||
name: KuiToi-Server
|
name: KuiToi-Server
|
||||||
server_ip: 0.0.0.0
|
server_ip: 0.0.0.0
|
||||||
server_port: 30814
|
server_port: 30814
|
||||||
WebAPI:
|
|
||||||
enabled: false
|
|
||||||
secret_key: 3838ccb03c86cdb386b67fbfdcba62d0
|
|
||||||
server_ip: 127.0.0.1
|
|
||||||
server_port: 8433
|
|
||||||
```
|
```
|
||||||
### Auth
|
### Auth
|
||||||
|
|
||||||
@ -83,6 +78,3 @@ WebAPI:
|
|||||||
* `name` - BeamMP 启动器的服务器名称
|
* `name` - BeamMP 启动器的服务器名称
|
||||||
* `server_ip` - 分配给服务器的 IP 地址(仅适用于有经验的用户,默认为 0.0.0.0)
|
* `server_ip` - 分配给服务器的 IP 地址(仅适用于有经验的用户,默认为 0.0.0.0)
|
||||||
* `server_port` - 服务器将在哪个端口上工作
|
* `server_port` - 服务器将在哪个端口上工作
|
||||||
|
|
||||||
### WebAPI
|
|
||||||
##### _文档尚未准备好_
|
|
@ -1,13 +0,0 @@
|
|||||||
# 服务器的 WebAPI
|
|
||||||
|
|
||||||
## 可用的端点
|
|
||||||
|
|
||||||
* `/stop`:
|
|
||||||
* 必需参数:
|
|
||||||
* `secret_key` - 在服务器配置中指定的密钥
|
|
||||||
|
|
||||||
|
|
||||||
* `/event.get`
|
|
||||||
* 这个端点还没有准备好
|
|
||||||
* 必需参数:
|
|
||||||
* `secret_key` - 在服务器配置中指定的密钥
|
|
@ -1,15 +0,0 @@
|
|||||||
Here's the translation of the readme.txt content:
|
|
||||||
|
|
||||||
# WebAPI for the server
|
|
||||||
|
|
||||||
## Available endpoints
|
|
||||||
|
|
||||||
* `/stop`:
|
|
||||||
* Required parameters:
|
|
||||||
* `secret_key` - The key specified in the server configuration
|
|
||||||
|
|
||||||
|
|
||||||
* `/event.get`
|
|
||||||
* The endpoint is not yet ready
|
|
||||||
* Required parameters:
|
|
||||||
* `secret_key` - The key specified in the server configuration
|
|
@ -1,14 +0,0 @@
|
|||||||
# WebAPI для сервера
|
|
||||||
|
|
||||||
## Доступные endpoints
|
|
||||||
|
|
||||||
* `/stop`:
|
|
||||||
* Необходимые парамеры:
|
|
||||||
* `secret_key` - Ключ, который указан в конфигурации сервера
|
|
||||||
|
|
||||||
|
|
||||||
* `/event.get`
|
|
||||||
* Точка не готова
|
|
||||||
* Необходимые парамеры:
|
|
||||||
* `secret_key` - Ключ, который указан в конфигурации сервера
|
|
||||||
|
|
@ -7,7 +7,6 @@ class Config:
|
|||||||
Server: Dict[str, object]
|
Server: Dict[str, object]
|
||||||
RCON: Dict[str, object]
|
RCON: Dict[str, object]
|
||||||
Options: Dict[str, object]
|
Options: Dict[str, object]
|
||||||
WebAPI: Dict[str, object]
|
|
||||||
enc: str | None
|
enc: str | None
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return "%s(Auth=%r, Game=%r, Server=%r)" % (self.__class__.__name__, self.Auth, self.Game, self.Server)
|
return "%s(Auth=%r, Game=%r, Server=%r)" % (self.__class__.__name__, self.Auth, self.Game, self.Server)
|
||||||
|
@ -50,7 +50,6 @@ class MultiLanguage:
|
|||||||
"GUI_need_key_message": "BeamMP key is required to run!\nDo you want to open the link in your browser to get the key?",
|
"GUI_need_key_message": "BeamMP key is required to run!\nDo you want to open the link in your browser to get the key?",
|
||||||
"GUI_enter_key_message": "Please enter the key:",
|
"GUI_enter_key_message": "Please enter the key:",
|
||||||
"GUI_cannot_open_browser": "Failed to open browser.\nUse this link: {}",
|
"GUI_cannot_open_browser": "Failed to open browser.\nUse this link: {}",
|
||||||
"web_start": "WebAPI started on {} (CTRL+C to stop)",
|
|
||||||
"core_bind_failed": "Failed to bind port. Error: {}",
|
"core_bind_failed": "Failed to bind port. Error: {}",
|
||||||
"core_direct_mode": "Server started in direct connection mode.",
|
"core_direct_mode": "Server started in direct connection mode.",
|
||||||
"core_auth_server_error": "Received invalid response from BeamMP authentication server.",
|
"core_auth_server_error": "Received invalid response from BeamMP authentication server.",
|
||||||
|
@ -21,9 +21,6 @@
|
|||||||
"GUI_enter_key_message": "请输入密钥:",
|
"GUI_enter_key_message": "请输入密钥:",
|
||||||
"GUI_cannot_open_browser": "无法打开浏览器。\n请使用此链接:{}",
|
"GUI_cannot_open_browser": "无法打开浏览器。\n请使用此链接:{}",
|
||||||
|
|
||||||
"": "Web阶段",
|
|
||||||
"web_start": "WebAPI已启动于{}(按CTRL+C停止)",
|
|
||||||
|
|
||||||
"": "核心短语",
|
"": "核心短语",
|
||||||
"core_bind_failed": "无法绑定端口。错误:{}",
|
"core_bind_failed": "无法绑定端口。错误:{}",
|
||||||
"core_direct_mode": "服务器以直接连接模式启动。",
|
"core_direct_mode": "服务器以直接连接模式启动。",
|
||||||
|
@ -21,9 +21,6 @@
|
|||||||
"GUI_enter_key_message": "Please enter the key:",
|
"GUI_enter_key_message": "Please enter the key:",
|
||||||
"GUI_cannot_open_browser": "Failed to open browser.\nUse this link: {}",
|
"GUI_cannot_open_browser": "Failed to open browser.\nUse this link: {}",
|
||||||
|
|
||||||
"": "Web phases",
|
|
||||||
"web_start": "WebAPI started on {} (CTRL+C to stop)",
|
|
||||||
|
|
||||||
"": "Core phrases",
|
"": "Core phrases",
|
||||||
"core_bind_failed": "Failed to bind port. Error: {}",
|
"core_bind_failed": "Failed to bind port. Error: {}",
|
||||||
"core_direct_mode": "Server started in direct connection mode.",
|
"core_direct_mode": "Server started in direct connection mode.",
|
||||||
|
@ -21,9 +21,6 @@
|
|||||||
"GUI_enter_key_message": "Пожалуйста введите ключ:",
|
"GUI_enter_key_message": "Пожалуйста введите ключ:",
|
||||||
"GUI_cannot_open_browser": "Не получилось открыть браузер.\nИспользуй эту ссылку: {}",
|
"GUI_cannot_open_browser": "Не получилось открыть браузер.\nИспользуй эту ссылку: {}",
|
||||||
|
|
||||||
"": "Web phases",
|
|
||||||
"web_start": "WebAPI запустился на {} (CTRL+C для выключения)",
|
|
||||||
|
|
||||||
"": "Core phrases",
|
"": "Core phrases",
|
||||||
"core_bind_failed": "Не получилось занять порт. Ошибка: {}",
|
"core_bind_failed": "Не получилось занять порт. Ошибка: {}",
|
||||||
"core_direct_mode": "Сервер запушен в режиме прямого подключения.",
|
"core_direct_mode": "Сервер запушен в режиме прямого подключения.",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user