moco搭建json api网站用于接口测试
java -jar moco-runner-1.0.0-standalone.jar http -p 12306 -c config/conf.json
配置文件
[
{
"request": {
"uri": "/test1",
"method": "POST"
},
"response": {
"json": {
"code":"200",
"desc":" POST success"
}
}
},
{
"request": {
"uri": "/test1",
"method": "GET",
},
"response": {
"json": {
"code":"200",
"desc":" GET success "
}
}
}
]
————————————————
版权声明:本文为CSDN博主「wangyiyice」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/wangyiyice/article/details/53586012
相关推荐
huimeiad 2020-11-23
luguanyou 2020-10-05
Mynamezhuang 2020-09-18
充满诗意的联盟 2020-08-23
yfightfors 2020-08-16
jeason 2020-07-20
gaitiangai 2020-07-19
JessePinkmen 2020-07-19
phpboy 2020-07-19
嵌入式移动开发 2020-07-05
HappinessCat 2020-07-05
zhanglao 2020-06-26
Henryztong 2020-06-25
Testingba工作室 2020-06-22
starzhangkiss 2020-06-22
maxelliot 2020-06-21
xiaouncle 2020-06-20
chichichi0 2020-06-16