mall-portal.postman_collection.json 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328
  1. {
  2. "variables": [],
  3. "info": {
  4. "name": "mall-portal",
  5. "_postman_id": "bb2ab4ed-fa53-9c01-9fe1-ef1568038701",
  6. "description": "",
  7. "schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
  8. },
  9. "item": [
  10. {
  11. "name": "会员登录",
  12. "request": {
  13. "url": "{{portal.mall}}/sso/login",
  14. "method": "POST",
  15. "header": [
  16. {
  17. "key": "Content-Type",
  18. "value": "application/x-www-form-urlencoded",
  19. "description": ""
  20. }
  21. ],
  22. "body": {
  23. "mode": "urlencoded",
  24. "urlencoded": [
  25. {
  26. "key": "username",
  27. "value": "test",
  28. "description": "",
  29. "type": "text"
  30. },
  31. {
  32. "key": "password",
  33. "value": "123",
  34. "description": "",
  35. "type": "text"
  36. }
  37. ]
  38. },
  39. "description": ""
  40. },
  41. "response": []
  42. },
  43. {
  44. "name": "获取购物车列表",
  45. "request": {
  46. "url": "{{portal.mall}}/cart/list",
  47. "method": "GET",
  48. "header": [],
  49. "body": {},
  50. "description": ""
  51. },
  52. "response": []
  53. },
  54. {
  55. "name": "清空购物车",
  56. "request": {
  57. "url": "{{portal.mall}}/cart/clear",
  58. "method": "POST",
  59. "header": [],
  60. "body": {},
  61. "description": ""
  62. },
  63. "response": []
  64. },
  65. {
  66. "name": "加入购物车",
  67. "request": {
  68. "url": "{{portal.mall}}/cart/add",
  69. "method": "POST",
  70. "header": [
  71. {
  72. "key": "Content-Type",
  73. "value": "application/json",
  74. "description": ""
  75. }
  76. ],
  77. "body": {
  78. "mode": "raw",
  79. "raw": "{\r\n \"price\": 5499,\r\n \"productId\": 29,\r\n \"productName\": \"Apple iPhone 8 Plus\",\r\n \"productSkuCode\": \"201808270029001\",\r\n \"productSkuId\": 106,\r\n \"productSubTitle\": \"【限时限量抢购】Apple产品年中狂欢节,好物尽享,美在智慧!速来 >> 勾选[保障服务][原厂保2年],获得AppleCare+全方位服务计划,原厂延保售后无忧。\",\r\n \"quantity\": 1,\r\n \"sp1\": \"金色\",\r\n \"sp2\": \"32G\",\r\n \"sp3\": null\r\n}"
  80. },
  81. "description": ""
  82. },
  83. "response": []
  84. },
  85. {
  86. "name": "获取购物车列表(包括促销信息)",
  87. "request": {
  88. "url": "{{portal.mall}}/cart/list/promotion",
  89. "method": "GET",
  90. "header": [],
  91. "body": {},
  92. "description": ""
  93. },
  94. "response": []
  95. },
  96. {
  97. "name": "修改购物车中商品数量",
  98. "request": {
  99. "url": {
  100. "raw": "{{portal.mall}}/cart/update/quantity?id=15&quantity=1",
  101. "host": [
  102. "{{portal.mall}}"
  103. ],
  104. "path": [
  105. "cart",
  106. "update",
  107. "quantity"
  108. ],
  109. "query": [
  110. {
  111. "key": "id",
  112. "value": "15",
  113. "equals": true,
  114. "description": ""
  115. },
  116. {
  117. "key": "quantity",
  118. "value": "1",
  119. "equals": true,
  120. "description": ""
  121. }
  122. ],
  123. "variable": []
  124. },
  125. "method": "GET",
  126. "header": [],
  127. "body": {},
  128. "description": ""
  129. },
  130. "response": []
  131. },
  132. {
  133. "name": "添加收货地址",
  134. "request": {
  135. "url": "{{portal.mall}}/member/address/add",
  136. "method": "POST",
  137. "header": [
  138. {
  139. "key": "Content-Type",
  140. "value": "application/json",
  141. "description": ""
  142. }
  143. ],
  144. "body": {
  145. "mode": "raw",
  146. "raw": "{\r\n \"defaultStatus\": 1,\r\n \"name\": \"大梨\",\r\n \"phoneNumber\": \"18033441849\",\r\n \"postCode\": \"518000\",\r\n \"city\": \"深圳市\",\r\n \"detailAddress\": \"东晓街道\",\r\n \"province\": \"广东省\",\r\n \"region\": \"福田区\"\r\n}"
  147. },
  148. "description": ""
  149. },
  150. "response": []
  151. },
  152. {
  153. "name": "删除收货地址",
  154. "request": {
  155. "url": "{{portal.mall}}/member/address/delete/2",
  156. "method": "POST",
  157. "header": [],
  158. "body": {},
  159. "description": ""
  160. },
  161. "response": []
  162. },
  163. {
  164. "name": "查询指定收货地址",
  165. "request": {
  166. "url": "{{portal.mall}}/member/address/3",
  167. "method": "GET",
  168. "header": [],
  169. "body": {},
  170. "description": ""
  171. },
  172. "response": []
  173. },
  174. {
  175. "name": "修改收货地址",
  176. "request": {
  177. "url": "{{portal.mall}}/member/address/update/3",
  178. "method": "POST",
  179. "header": [
  180. {
  181. "key": "Content-Type",
  182. "value": "application/json",
  183. "description": ""
  184. }
  185. ],
  186. "body": {
  187. "mode": "raw",
  188. "raw": "{\n \"id\": 3,\n \"memberId\": 1,\n \"name\": \"大梨\",\n \"phoneNumber\": \"18033441849\",\n \"defaultStatus\": 0,\n \"postCode\": \"518000\",\n \"province\": \"广东省\",\n \"city\": \"深圳市\",\n \"region\": \"福田区\",\n \"detailAddress\": \"清水河街道\"\n }"
  189. },
  190. "description": ""
  191. },
  192. "response": []
  193. },
  194. {
  195. "name": "领取优惠券",
  196. "request": {
  197. "url": "{{portal.mall}}/member/coupon/add/7",
  198. "method": "POST",
  199. "header": [],
  200. "body": {},
  201. "description": ""
  202. },
  203. "response": []
  204. },
  205. {
  206. "name": "获取会员优惠券列表",
  207. "request": {
  208. "url": "{{portal.mall}}/member/coupon/list",
  209. "method": "GET",
  210. "header": [],
  211. "body": {},
  212. "description": ""
  213. },
  214. "response": []
  215. },
  216. {
  217. "name": "获取购物车可用优惠券",
  218. "request": {
  219. "url": "{{portal.mall}}/member/coupon/list/cart/1",
  220. "method": "GET",
  221. "header": [],
  222. "body": {},
  223. "description": ""
  224. },
  225. "response": []
  226. },
  227. {
  228. "name": "根据购物车信息生成确认单",
  229. "request": {
  230. "url": "{{portal.mall}}/order/confirmOrder",
  231. "method": "POST",
  232. "header": [],
  233. "body": {},
  234. "description": ""
  235. },
  236. "response": []
  237. },
  238. {
  239. "name": "下单",
  240. "request": {
  241. "url": "{{portal.mall}}/order/generateOrder",
  242. "method": "POST",
  243. "header": [
  244. {
  245. "key": "Content-Type",
  246. "value": "application/json",
  247. "description": ""
  248. }
  249. ],
  250. "body": {
  251. "mode": "raw",
  252. "raw": "{\r\n \"couponId\": 2,\r\n \"memberReceiveAddressId\": 4,\r\n \"payType\": 0\r\n}"
  253. },
  254. "description": ""
  255. },
  256. "response": []
  257. },
  258. {
  259. "name": "订单支付成功回调",
  260. "request": {
  261. "url": {
  262. "raw": "{{portal.mall}}/order/paySuccess?orderId=12",
  263. "host": [
  264. "{{portal.mall}}"
  265. ],
  266. "path": [
  267. "order",
  268. "paySuccess"
  269. ],
  270. "query": [
  271. {
  272. "key": "orderId",
  273. "value": "12",
  274. "equals": true,
  275. "description": ""
  276. }
  277. ],
  278. "variable": []
  279. },
  280. "method": "POST",
  281. "header": [],
  282. "body": {},
  283. "description": ""
  284. },
  285. "response": []
  286. },
  287. {
  288. "name": "取消超时订单",
  289. "request": {
  290. "url": "{{portal.mall}}/order/cancelTimeOutOrder",
  291. "method": "POST",
  292. "header": [],
  293. "body": {},
  294. "description": ""
  295. },
  296. "response": []
  297. },
  298. {
  299. "name": "取消单个超时订单",
  300. "request": {
  301. "url": {
  302. "raw": "{{portal.mall}}/order/cancelOrder?orderId=13",
  303. "host": [
  304. "{{portal.mall}}"
  305. ],
  306. "path": [
  307. "order",
  308. "cancelOrder"
  309. ],
  310. "query": [
  311. {
  312. "key": "orderId",
  313. "value": "13",
  314. "equals": true,
  315. "description": ""
  316. }
  317. ],
  318. "variable": []
  319. },
  320. "method": "POST",
  321. "header": [],
  322. "body": {},
  323. "description": ""
  324. },
  325. "response": []
  326. }
  327. ]
  328. }