|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- # JCS-pub API
-
- **跳转回README.md [中文](../README.md) [英文](../README_en.md)**
-
- ## 1、桶相关
-
- ### 1.1 创建桶
-
- <table border="1" style="border-collapse: collapse; width: 100%; font-family: monospace;">
- <tr >
- <th colspan="3" style="text-align: center; background-color: #f6f8fa;">请求</th>
- </tr>
- <tr>
- <td style="padding: 6px; font-weight: bold; background-color: #ffffff;">POST</td>
- <td style="padding: 6px; background-color: #ffffff;">application/json</td>
- <td style="padding: 6px; background-color: #ffffff;">/v1/bucket/create</td>
- </tr>
- <tr>
- <td style="padding: 6px; font-weight: bold; background-color: #ffffff;">Query</td>
- <td colspan="2" style="padding: 6px; background-color: #ffffff;">无</td>
- </tr>
- <tr>
- <td style="padding: 6px; font-weight: bold; background-color: #ffffff;">Body</td>
- <td colspan="2" style="padding: 6px 10px; vertical-align: top; background-color: #ffffff;">
- <pre style="margin: 0; font-family: inherit;">{
- "userID": 1,
- "name": "bkt1" //桶名
- }</pre>
- </td>
- </tr>
- <tr>
- <th colspan="3" style="text-align: center; font-weight: bold; background-color: #f6f8fa;">响应示例</th>
- </tr>
- <tr>
- <td colspan="3" style="padding: 6px 10px; vertical-align: top; background-color: #ffffff;">
- <pre>{
- "code": "OK",
- "message": "",
- "data": {
- "bucket": {
- "bucketID": 1, // 桶ID
- "name": "bkt1" // 桶名
- }
- }
- }</pre>
- </td>
- </tr>
- </table>
|