driver_attrubute.http 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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 Attribute ---------------------
  17. ### 新增 DriverAttribute
  18. #/manager/driver_attribute/add
  19. POST http://{{dc3-manager}}/manager/driver_attribute/add
  20. Accept: */*
  21. Content-Type: application/json
  22. Cache-Control: no-cache
  23. {
  24. "displayName": "测试IP",
  25. "name": "ip",
  26. "type": "string",
  27. "value": "localhost",
  28. "driverId": -1,
  29. "description": "测试驱动属性"
  30. }
  31. ### 修改 DriverAttribute
  32. #/manager/driver_attribute/update
  33. POST http://{{dc3-manager}}/manager/driver_attribute/update
  34. Accept: */*
  35. Content-Type: application/json
  36. Cache-Control: no-cache
  37. {
  38. "id": 1,
  39. "displayName": "测试IP",
  40. "name": "ip",
  41. "type": "string",
  42. "value": "localhost",
  43. "driverId": -1,
  44. "description": "测试驱动属性"
  45. }
  46. ### 根据 ID 查询 DriverAttribute
  47. #/manager/driver_attribute/id/:id
  48. GET http://{{dc3-manager}}/manager/driver_attribute/id/1
  49. Accept: */*
  50. Cache-Control: no-cache
  51. ### 分页查询 DriverAttribute
  52. #/manager/driver_attribute/list,支持displayName模糊查询,name\type\driverId精准查询
  53. POST http://{{dc3-manager}}/manager/driver_attribute/list
  54. Accept: */*
  55. Content-Type: application/json
  56. Cache-Control: no-cache
  57. {
  58. "displayName": "",
  59. "page": {
  60. "current": 1,
  61. "orders": [
  62. {
  63. "column": "id",
  64. "asc": false
  65. }
  66. ]
  67. }
  68. }
  69. ### 根据 ID 删除 DriverAttribute
  70. #/manager/driver_attribute/delete/:id
  71. POST http://{{dc3-manager}}/manager/driver_attribute/delete/1
  72. Accept: */*
  73. Content-Type: application/json
  74. Cache-Control: no-cache