请求基本清单数据
GET
/api/metadata/manifest无需登录
请求参数
无
示例代码
返回响应
成功(200)
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
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"
}
]
}
}
最后修改时间: 2 个月前