You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

JCS_pub_API.md 1.6 kB

5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # JCS-pub API
  2. **跳转回README.md [中文](../README.md) [英文](../README_en.md)**
  3. ## 1、桶相关
  4. ### 1.1 创建桶
  5. <table border="1" style="border-collapse: collapse; width: 100%; font-family: monospace;">
  6. <tr >
  7. <th colspan="3" style="text-align: center; background-color: #f6f8fa;">请求</th>
  8. </tr>
  9. <tr>
  10. <td style="padding: 6px; font-weight: bold; background-color: #ffffff;">POST</td>
  11. <td style="padding: 6px; background-color: #ffffff;">application/json</td>
  12. <td style="padding: 6px; background-color: #ffffff;">/v1/bucket/create</td>
  13. </tr>
  14. <tr>
  15. <td style="padding: 6px; font-weight: bold; background-color: #ffffff;">Query</td>
  16. <td colspan="2" style="padding: 6px; background-color: #ffffff;">无</td>
  17. </tr>
  18. <tr>
  19. <td style="padding: 6px; font-weight: bold; background-color: #ffffff;">Body</td>
  20. <td colspan="2" style="padding: 6px 10px; vertical-align: top; background-color: #ffffff;">
  21. <pre style="margin: 0; font-family: inherit;">{
  22. "userID": 1,
  23. "name": "bkt1" //桶名
  24. }</pre>
  25. </td>
  26. </tr>
  27. <tr>
  28. <th colspan="3" style="text-align: center; font-weight: bold; background-color: #f6f8fa;">响应示例</th>
  29. </tr>
  30. <tr>
  31. <td colspan="3" style="padding: 6px 10px; vertical-align: top; background-color: #ffffff;">
  32. <pre>{
  33. "code": "OK",
  34. "message": "",
  35. "data": {
  36. "bucket": {
  37. "bucketID": 1, // 桶ID
  38. "name": "bkt1" // 桶名
  39. }
  40. }
  41. }</pre>
  42. </td>
  43. </tr>
  44. </table>

本项目旨在将云际存储公共基础设施化,使个人及企业可低门槛使用高效的云际存储服务(安装开箱即用云际存储客户端即可,无需关注其他组件的部署),同时支持用户灵活便捷定制云际存储的功能细节。