- API
- 鉴权
- 元数据
- 基本统计
- 封禁
- 下载器
- 推送渠道
- 通用
- 功能模块
- 警报
- 程序日志
- 统计图表(基础)
- PBH Plus
- Torrent
- 图表
- Peer
- 工具
- 下载器兼容层
请求基本清单数据
GET
/api/metadata/manifest
请求参数
无
示例代码
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:9898/api/metadata/manifest'
返回响应
🟢200成功
application/json
Body
version
object
版本信息清单
version
string
必需
os
string
必需
branch
string
必需
commit
string
必需
abbrev
string
必需
installationId
string
安装ID
modules
array [object {2}]
启用的模块列表
className
string
类名
configName
string
配置文件名
示例
{
"success": true,
"message": null,
"data": {
"version": {
"version": "6.0.0-24w31b",
"os": "Windows 11",
"branch": "${git.branch}",
"commit": "${git.commit.id}",
"abbrev": "${git.commit.id.abbrev}",
"javafx": "22.0.2"
},
"modules": [
{
"className": "com.ghostchu.peerbanhelper.module.impl.rule.IPBlackList",
"configName": "ip-address-blocker"
},
{
"className": "com.ghostchu.peerbanhelper.module.impl.rule.PeerIdBlacklist",
"configName": "peer-id-blacklist"
},
{
"className": "com.ghostchu.peerbanhelper.module.impl.rule.ClientNameBlacklist",
"configName": "client-name-blacklist"
},
{
"className": "com.ghostchu.peerbanhelper.module.impl.rule.ExpressionRule",
"configName": "expression-engine"
},
{
"className": "com.ghostchu.peerbanhelper.module.impl.rule.ProgressCheatBlocker",
"configName": "progress-cheat-blocker"
},
{
"className": "com.ghostchu.peerbanhelper.module.impl.rule.MultiDialingBlocker",
"configName": "multi-dialing-blocker"
},
{
"className": "com.ghostchu.peerbanhelper.module.impl.rule.AutoRangeBan",
"configName": "auto-range-ban"
},
{
"className": "com.ghostchu.peerbanhelper.module.impl.rule.BtnNetworkOnline",
"configName": "btn"
},
{
"className": "com.ghostchu.peerbanhelper.module.impl.webapi.BlockListController",
"configName": "webapi-downloader-cidr-blocklist"
},
{
"className": "com.ghostchu.peerbanhelper.module.impl.rule.IPBlackRuleList",
"configName": "ip-address-blocker-rules"
},
{
"className": "com.ghostchu.peerbanhelper.module.impl.webapi.PBHMetricsController",
"configName": "webapi-metrics"
},
{
"className": "com.ghostchu.peerbanhelper.module.impl.webapi.PBHBanController",
"configName": "webapi-downloader"
},
{
"className": "com.ghostchu.peerbanhelper.module.impl.webapi.PBHMetadataController",
"configName": "webapi-metadata"
},
{
"className": "com.ghostchu.peerbanhelper.module.impl.webapi.PBHDownloaderController",
"configName": "webapi-downloader"
},
{
"className": "com.ghostchu.peerbanhelper.module.impl.webapi.RuleSubController",
"configName": "webapi-rule-subscription"
},
{
"className": "com.ghostchu.peerbanhelper.module.impl.webapi.PBHAuthenticateController",
"configName": "webapi-authenticate"
},
{
"className": "com.ghostchu.peerbanhelper.module.impl.webapi.PBHLogsController",
"configName": "webapi-logs"
},
{
"className": "com.ghostchu.peerbanhelper.module.impl.webapi.PBHPlusController",
"configName": "webapi-pbh-plus"
},
{
"className": "com.ghostchu.peerbanhelper.module.impl.webapi.PBHOOBEController",
"configName": "webapi-oobe"
},
{
"className": "com.ghostchu.peerbanhelper.module.impl.webapi.PBHChartController",
"configName": "webapi-charts"
},
{
"className": "com.ghostchu.peerbanhelper.module.impl.webapi.PBHGeneralController",
"configName": "webapi-general"
}
]
}
}
🔴500内部服务器错误
🟢200成功
修改于 2024-09-11 06:49:16