20220516增删改查测试.http 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. POST http://localhost:12128/rest/api/city/list
  2. Content-Type: application/json
  3. {}
  4. ###
  5. POST http://localhost:12128/rest/api/role/list
  6. Content-Type: application/json
  7. {}
  8. ###
  9. POST http://localhost:12128/rest/api/role/add
  10. Content-Type: application/json
  11. {
  12. "roleName": "测试--请不要创建用户"
  13. }
  14. ###
  15. POST http://localhost:12128/rest/api/role/delete/id/9
  16. Content-Type: application/json
  17. ###
  18. POST http://localhost:12128/rest/api/role/select/id/9
  19. Content-Type: application/json
  20. ###
  21. POST http://localhost:12128/rest/api/role/update/id/10
  22. Content-Type: application/json
  23. {
  24. "roleName": "测试--请不要创建用户222"
  25. }
  26. ###
  27. POST http://localhost:12128/rest/api/user/list
  28. Content-Type: application/json
  29. ###
  30. POST http://localhost:12128/rest/api/user/add
  31. Content-Type: application/json
  32. {
  33. "loginName":"13866666666",
  34. "userName":"赵六",
  35. "phone":"13866666666",
  36. "email":"6324124512@163.com",
  37. "province":"河北省",
  38. "roleIdList":[
  39. 3,
  40. 5,
  41. 7
  42. ],
  43. "cityId":-1
  44. }
  45. ###
  46. POST http://localhost:12128/rest/api/user/delete/id/6
  47. Content-Type: application/json
  48. ###
  49. POST http://localhost:12128/rest/api/user/select/id/4
  50. Content-Type: application/json
  51. ###
  52. POST http://localhost:12128/rest/api/user/update/id/7
  53. Content-Type: application/json
  54. {
  55. "loginName":"13866666666",
  56. "userName":"赵六宝",
  57. "phone":"13866666666",
  58. "email":"6324124512@163.com",
  59. "province":"河北省",
  60. "roleIdList":[
  61. 3,
  62. 5
  63. ],
  64. "cityId":-1
  65. }