Skip to content

Commit

Permalink
update depository cert api & pr reviewers
Browse files Browse the repository at this point in the history
Signed-off-by: bjwswang <[email protected]>
  • Loading branch information
bjwswang committed Jun 30, 2023
1 parent 358ace6 commit 6a4786d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
7 changes: 0 additions & 7 deletions .github/auto_request_review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,6 @@ reviewers:
- bjwswang
- 0xff-dev
- Abirdcfly
- Lanture1064
- Carrotzpc
- dayuy
- huangqg
- Jandiasnow
- Vsion
- zggmd

options:
ignore_draft: true
Expand Down
16 changes: 14 additions & 2 deletions docs/SaaS/dpsaas/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,17 +253,29 @@ curl -k https://bc-saas.172.22.96.209.nip.io/basic/depositories/18b682430b2ee5cd

`API`: GET /basic/depositories/certificate/:kid

`query参数`:

| 参数名称 | 参数描述 | 必填 | 默认值 |
| :--: | :--: | :--: | :--: |
| style | 证书类型,支持 `CN`(中文证书)和`ENG`(英文证书)两种 || `CN` |

`测试`:

```
curl -k https://bc-saas.172.22.96.209.nip.io/basic/depositories/certificate/18b682430b2ee5cdcb17c0ea678a52223056d256
curl -k https://bc-saas.172.22.96.209.nip.io/basic/depositories/certificate/18b682430b2ee5cdcb17c0ea678a52223056d25?style=CN
```

`返回`:

证书文件会从浏览器中直接下载,证书内容如下:

![存证证书示例](../../img/depository_cert_example.png)
- 中文证书

![中文证书](../../img/depository_cert_example.png)

- 英文证书

![英文证书](../../img/depository_cert_example_ENG.png)

其中,返回的HTTP Response Header:

Expand Down
Binary file modified docs/img/depository_cert_example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/depository_cert_example_ENG.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6a4786d

Please sign in to comment.