postman 使用

使用变量

切换开发 测试 生产环境, 在每个API上修改host太慢了, 使用变量可以快速切换
使用方式{{xxx}}

token自动添加

https://learning.postman.com/docs/sending-requests/authorization/

与curl对比
curl效率较低, 只在生产环境定位问题用, 日常使用history来回翻太慢

原文地址:https://www.cnblogs.com/yszzu/p/13331561.html