driver_info.http 1.9 KB

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