黑名单
获取黑名单列表
API 定义:
GET api/v3/banned/
请求示例:
GET api/v3/banned/?_page=1&_limit=10000
返回数据:
{
"code": 0,
"data": [],
"meta": {
"count": 0,
"limit": 10000,
"page": 1
}
}
创建黑名单
API 定义:
POST api/v3/banned/
请求参数:
{
"who": "mqttjs_ab9069449e",
"as": "client_id",
"reason": "banned the clientId",
"desc": "normal banned",
"until": 1536146187
}
请求示例:
POST api/v3/banned/
返回数据:
{
"code": 0,
"data": {
"who": "mqttjs_ab9069449e",
"as": "client_id",
"reason": "banned the clientId",
"desc": "normal banned",
"until": 1536146187
}
}
删除指定黑名单
API 定义:
DELETE api/v3/banned/${who}?as=${as}
请求示例:
DELETE api/v3/banned/mqttjs_ab9069449e?as=client_id
返回数据:
{
"code": 0
}