api_test.http 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. ### 认领
  2. POST http://{{host}}:8888/domain/claim
  3. Content-Type: application/json
  4. #Cookie:
  5. newUserId:22
  6. appId:10000
  7. {
  8. "ent_id": "1057165a5d1556510256475a470a554c030255534557480d0645065555004658",
  9. "type": 1
  10. }
  11. > {%
  12. client.test("Request executed successfully", function() {
  13. client.assert(response.status === 200, "Response status is not 200");
  14. });
  15. %}
  16. ### 取消认领
  17. POST http://{{host}}:8888/domain/unclaimed
  18. Content-Type: application/json
  19. #Cookie:
  20. newUserId:22
  21. appId:10000
  22. {
  23. "id":"4d5f405e5c" ,
  24. "type": 1
  25. }
  26. > {%
  27. client.test("Request executed successfully", function() {
  28. client.assert(response.status === 200, "Response status is not 200");
  29. });
  30. %}
  31. ### 是否认领过
  32. POST http://{{host}}:8888/domain/isClaimed
  33. Content-Type: application/json
  34. #Cookie:
  35. newUserId:22
  36. appId:10000
  37. {
  38. "company_id": "1057165a5d1556510256475a470a554c030255534557480d0645065555004658",
  39. "type": 1
  40. }
  41. > {%
  42. client.test("Request executed successfully", function() {
  43. client.assert(response.status === 200, "Response status is not 200");
  44. });
  45. %}
  46. ### 我认领的经销商
  47. POST http://{{host}}:8888/domain/claim/distributor
  48. Content-Type: application/json
  49. #Cookie:
  50. newUserId:22
  51. appId:10000
  52. > {%
  53. client.test("Request executed successfully", function() {
  54. client.assert(response.status === 200, "Response status is not 200");
  55. });
  56. %}
  57. ### 我认领的医疗机构
  58. POST http://{{host}}:8888/domain/claim/institution
  59. Content-Type: application/json
  60. #Cookie:
  61. newUserId:22
  62. appId:10000
  63. > {%
  64. client.test("Request executed successfully", function() {
  65. client.assert(response.status === 200, "Response status is not 200");
  66. });
  67. %}