如何测试后端接口

后端传过来的是什么?
JSON。
JSON是什么?JavaScript Object Notation
因此这个工具应该用JS来写。
我已经准备好了:
https://github.com/yaoyuan0/rest-test-template
直接修改 test.js 测试后端的 api 即可
如果你是前端,最好一开始就写上,如果后端接口都没有到位,就不要浪费时间了。

猜你喜欢

转载自blog.csdn.net/YYecust/article/details/89855762