group.http 1.6 KB

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