test.http 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. @baseUrl = http://localhost:18081/website
  2. @baseUrl2 = http://localhost:7902/longyuan
  3. @token = Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MzkyNDU3MzIsImlkIjoiNjMwNWMzZGRkNWQ3OGRiY2I3MGI3ZjcwIiwia2V5Ijoic2t1M2QtdXNlciIsIm5hbWUiOiIxMzQwODU0NzgyMyIsIm9yaWdfaWF0IjoxNzM5MTU5MzMyLCJwYXJlbnQiOiI2MzA1YzNkZGQ1ZDc4ZGJjYjcwYjdmNzAiLCJwaG9uZSI6IjEzNDA4NTQ3ODIzIiwicm9sZSI6IiIsInN0YXRlIjoxLCJ1c2VyVHlwZSI6Mn0.LsDl1clBPDheCtJEb2RVAOame4t8_QBiao0Ty5xFlUE
  4. ### 登录
  5. POST {{baseUrl}}/login/password
  6. Authorization: {{token}}
  7. Content-Type: application/json
  8. {
  9. "loginName": "liwei",
  10. "password": "图片描述"
  11. }
  12. ### 图片
  13. POST {{baseUrl}}/image/create
  14. Authorization: {{token}}
  15. Content-Type: application/json
  16. {
  17. "rawImage": {"url":"https://sku3d-test.obs.cn-east-3.myhuaweicloud.com/tmp/a3.png"},
  18. "nameCn": "test1"
  19. }
  20. ### 搜索图片
  21. GET {{baseUrl2}}/image/fassi/list
  22. Authorization: {{token}}
  23. Content-Type: application/json
  24. {
  25. "url":"https://sku3d-test.obs.cn-east-3.myhuaweicloud.com/tmp/a3.png"
  26. }
  27. ### 删除图片
  28. POST {{baseUrl}}/image/delete/67611f5d35ffb6c795a6edcf
  29. Authorization: {{token}}
  30. ### 获取图片列表
  31. GET {{baseUrl2}}/image/list
  32. Authorization: {{token}}
  33. ### 更新图片
  34. POST {{baseUrl}}/image/update
  35. Authorization: {{token}}
  36. Content-Type: application/json
  37. {
  38. "_id": "676393dfd94b5ee22ba7e3c1"
  39. }