user.http 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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. ### 新增 User
  17. POST http://{{host}}/auth/userLogin/add
  18. Accept: */*
  19. Content-Type: application/json
  20. Cache-Control: no-cache
  21. {
  22. "name": "dc3",
  23. "password": "dc3dc3dc3",
  24. "description": "平台开发者账号"
  25. }
  26. ### 修改 User
  27. POST http://{{host}}/auth/userLogin/update
  28. Accept: */*
  29. Content-Type: application/json
  30. Cache-Control: no-cache
  31. {
  32. "id": 1,
  33. "password": "dc3dc3dc3",
  34. "enable": true,
  35. "description": "平台开发者账号"
  36. }
  37. ### 根据 ID 重置 User 密码
  38. POST http://{{host}}/auth/userLogin/reset/1
  39. Accept: */*
  40. Content-Type: application/json
  41. Cache-Control: no-cache
  42. ### 根据 ID 查询 User
  43. GET http://{{host}}/auth/userLogin/id/1
  44. Accept: */*
  45. Cache-Control: no-cache
  46. ### 根据 Name 查询 User
  47. GET http://{{host}}/auth/userLogin/name/dc3
  48. Accept: */*
  49. Cache-Control: no-cache
  50. ### 分页查询 User
  51. POST http://{{host}}/auth/userLogin/list
  52. Accept: */*
  53. Content-Type: application/json
  54. Cache-Control: no-cache
  55. {
  56. "name": "",
  57. "page": {
  58. "current": 1,
  59. "size": 500,
  60. "orders": [
  61. {
  62. "column": "id",
  63. "asc": false
  64. }
  65. ]
  66. }
  67. }
  68. ### 检测 User 是否存在并有效
  69. GET http://{{host}}/auth/userLogin/check/dc3
  70. Accept: */*
  71. Cache-Control: no-cache
  72. ### 根据 ID 删除 User
  73. POST http://{{host}}/auth/userLogin/delete/1
  74. Accept: */*
  75. Content-Type: application/json
  76. Cache-Control: no-cache
  77. ###