driver.http 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. #
  2. # Copyright 2016-present the original author or authors.
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # https://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. #
  16. ### --------------------- Driver ---------------------
  17. ### 新增 Driver
  18. #/manager/driver/add
  19. POST http://{{dc3-manager}}/manager/driver/add
  20. Accept: */*
  21. Content-Type: application/json
  22. Cache-Control: no-cache
  23. X-Auth-Tenant-Id: -1
  24. {
  25. "name": "测试驱动",
  26. "serviceName": "dc3-driver-test",
  27. "host": "127.0.0.1",
  28. "port": 8799,
  29. "description": "测试驱动"
  30. }
  31. ### 批量新增 Driver
  32. #/manager/driver/batch_import
  33. POST http://{{dc3-manager}}/manager/driver/batch_import
  34. Accept: */*
  35. Content-Type: application/json
  36. Cache-Control: no-cache
  37. < ../../files/batch-import.json
  38. ### 修改 Driver
  39. #/manager/driver/update
  40. POST http://{{dc3-manager}}/manager/driver/update
  41. Accept: */*
  42. Content-Type: application/json
  43. Cache-Control: no-cache
  44. X-Auth-Tenant-Id: -1
  45. {
  46. "id": 1399921716049756161,
  47. "name": "测试驱动",
  48. "serviceName": "dc3-driver-test",
  49. "host": "127.0.0.1",
  50. "port": 8799,
  51. "description": "测试驱动"
  52. }
  53. ### 根据 ID 查询 Driver
  54. #/manager/driver/id/:id
  55. GET http://{{dc3-manager}}/manager/driver/id/1399921716049756161
  56. Accept: */*
  57. Cache-Control: no-cache
  58. ### 根据 ServiceName 查询 Driver
  59. #/manager/driver/service/:serviceName
  60. GET http://{{dc3-manager}}/manager/driver/service/dc3-driver-test
  61. Accept: */*
  62. Cache-Control: no-cache
  63. X-Auth-Tenant-Id: -1
  64. ### 查询 Driver 服务状态
  65. #/manager/driverStatus/driver,支持name\serverName\host模糊查询,port精准查询
  66. POST http://{{dc3-manager}}/manager/driverStatus/driver
  67. Accept: */*
  68. Content-Type: application/json
  69. Cache-Control: no-cache
  70. X-Auth-Tenant-Id: -1
  71. {
  72. "name": "",
  73. "serviceName": "dc3-driver-test",
  74. "page": {
  75. "current": 1,
  76. "orders": [
  77. {
  78. "column": "id",
  79. "asc": false
  80. }
  81. ]
  82. }
  83. }
  84. ### 分页查询 Driver
  85. #/manager/driver/list,支持name\serverName\host模糊查询,port精准查询
  86. POST http://{{dc3-manager}}/manager/driver/list
  87. Accept: */*
  88. Content-Type: application/json
  89. Cache-Control: no-cache
  90. X-Auth-Tenant-Id: -1
  91. {
  92. "name": "",
  93. "page": {
  94. "current": 1,
  95. "orders": [
  96. {
  97. "column": "id",
  98. "asc": false
  99. }
  100. ]
  101. }
  102. }
  103. ### 根据 ID 删除 Driver
  104. #/manager/driver/delete/:id
  105. POST http://{{dc3-manager}}/manager/driver/delete/1
  106. Accept: */*
  107. Content-Type: application/json
  108. Cache-Control: no-cache
  109. ###