[
{
"description": "this is moco模块",
"request": {
"uri": "/demo",
"method":"get"
},
"response": {
"text": "this is the first moco demo",
"status":200
}
},
#下面是post类型
{
"description": "登录模块",
"request": {
"uri": "/demotwo",
"method":"post",
"forms": { #这里用forms不用queries 是因为他是post请求;get用queries
"username": "zhang",
"password": "123456"
}
},
"response": {
"text": "this is the 登录模块",
"status":200,
"json": {
"username": "zhang",
"password": "123456"
},
"headers":{
"Content-Type":"text/html;charset=gbk"
}
}
}
]
moco数据名用forms不用queries是因为他是post请求_xing2516_新浪博客
最新推荐文章于 2024-10-19 19:30:00 发布