> For the complete documentation index, see [llms.txt](https://bitlong.gitbook.io/api-doc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bitlong.gitbook.io/api-doc/tapd-api/api/rest.md).

# REST

## 1.下载证明文件

<mark style="color:green;">`GET`</mark> `http://132.232.109.84:8090/proof/download/:asset_id/:proof_name`

#### 请求参数

path参数

* `:asset_id`  资产AssetID

格式：长度为64的十六进制字符串

例如：`dbc7b17c55ac3e9fa56798f55c25d4bbbc185dd61f0298695ac5b70de4eadb9c`

* `:proof_name` 证明文件名字

例如：`0234c7f1456fd26848c95acdc52fb58f61c3ead7277d827b165394c9b8838a0104-8e21d3e67519ce222af716bec6d78184-1.assetproof`

#### 完整请求示例

`http://132.232.109.84:8090/proof/download/dbc7b17c55ac3e9fa56798f55c25d4bbbc185dd61f0298695ac5b70de4eadb9c/0234c7f1456fd26848c95acdc52fb58f61c3ead7277d827b165394c9b8838a0104-8e21d3e67519ce222af716bec6d78184-1.assetproof`

#### 请求响应

* 成功则直接响应文件下载

<figure><img src="/files/jJ2McIe5ehUKQUU9odgp" alt=""><figcaption></figcaption></figure>

* 失败返回错误结果

```json
{
    "success": false,
    "error": "Validate And Get Proof File Path. wrong assetId length",
    "code": 0,
    "data": null
}
```
