遍历所有比特ID

请求地址: GET /bitids

接口说明

  • 遍历所有比特ID。

请求参数

  • Query
    参数名 类型 必需 示例值 说明
    offset integer 0 起始下标
    limit integer 50 范围(小于1000,默认50)

请求示例

GET https://back-office-api.bitanswer.cn/bitanswer/api/bitids?offset=0&limit=3
bitkey: xxx

响应示例

{
    "status": 0,
    "data": {
        "total": 14,
        "items": [
            {
                "status": 0,
                "guid": "FB820512BA8ACC12",
                "regDate": "2020-06-08",
                "label": "label_empty_1"
            },
            {
                "status": 0,
                "guid": "EA820512A98ACC12",
                "regDate": "2020-06-08",
                "label": "158"
            },
            {
                "status": 0,
                "guid": "1234567812345678",
                "regDate": "2021-10-26"
            }
        ]
    }
}

响应体参数说明

按条件检索比特ID

请求地址: POST /bitids/data

接口说明

  • 按条件检索比特ID。

请求参数

  • Query

    参数名 类型 必需 示例值 说明
    offset integer 0 起始下标
    limit integer 50 范围(小于1000,默认50)
  • Body

    参数名 类型 必需 中文名
    querys array 查询条件
    sorts array 排序条件

支持的参数见下表,检索类型query表示可用于查询,sort表示可用于排序,query|sort表示可用于查询和排序。

参数名 类型 检索类型 必需 中文名
guid string query|sort BIT-ID
label string query|sort 喷码
status integer query|sort 状态
regDate string query|sort 注册时间

请求示例

POST https://back-office-api.bitanswer.cn/bitanswer/api/bitids/data?offset=0&limit=2
bitkey: xxx
Content-Type: application/json

{
    "querys":[
        {
            "name":"guid",
            "op":"=",
            "values":["FB820512BA8ACC12"]
        }
    ]
}

检索请求参数用法

响应示例

{
    "status": 0,
    "data": {
        "total": 1,
        "items": [
            {
                "status": 0,
                "guid": "FB820512BA8ACC12",
                "regDate": "2020-06-08",
                "label": "label_empty_1"
            }
        ]
    }
}

响应体参数说明

使用GUID获取一个比特ID

请求地址: GET /bitids/guid/{guid}

接口说明

  • 使用GUID获取一个比特ID。

请求参数

  • Path
    参数名 类型 必需 示例值 说明
    guid string xxx BIT-ID

请求示例

GET https://back-office-api.bitanswer.cn/bitanswer/api/bitids/guid/1234567812345678?offset=0&limit=2
bitkey: xxx

响应示例

{
    "status": 0,
    "data": {
        "total": 1,
        "items": [
            {
                "status": 0,
                "guid": "1234567812345678",
                "regDate": "2021-10-26"
            }
        ]
    }
}

响应体参数说明

使用喷码获取一个比特ID

请求地址: GET /bitids/label/{label}

接口说明

  • 使用喷码获取一个比特ID。

请求参数

  • Path
    参数名 类型 必需 示例值 说明
    label string xxx 喷码

请求示例

GET https://back-office-api.bitanswer.cn/bitanswer/api/bitids/label/7777
bitkey: xxxx

响应示例

{
    "status": 0,
    "data": {
        "total": 1,
        "items": [
            {
                "status": 0,
                "guid": "1234567812345611",
                "regDate": "2021-10-26",
                "label": "7777"
            }
        ]
    }
}

响应体参数说明