profile.http 1.8 KB

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