moco 搭建接口mock环境入门
2017-04-10 18:26
211 查看
>>> git clone https://github.com/dreamhead/moco.git
>>> download Standalone Moco Runner
>>> 写配置:
四种配置分别对应:
http://localhost:12306/foo?param=blash" http://localhost:12306/aabb/foo" http://localhost:12306/redirect http://localhost:12306/json
>>> 批处理启动(自检测配置更新重新启动)
参考:
https://www.ibm.com/developerworks/cn/web/1405_liugang_mocowebtest/ https://github.com/dreamhead/moco
一张图看git命令 链接
>>> download Standalone Moco Runner
>>> 写配置:
四种配置分别对应:
http://localhost:12306/foo?param=blash" http://localhost:12306/aabb/foo" http://localhost:12306/redirect http://localhost:12306/json
[ { "request" : { "uri" : "/foo", "queries" : { "param" : "blash" } }, "response" : { "text" : "bar" } }, { "request": { "uri": { "match": "/\\w*/foo" } }, "response": { "text": "bar by re url" } }, { "request" : { "uri" : "/redirect" }, "redirectTo" : "http://www.github.com" }, { "request": { "uri": "/json" }, "response": { "json": {"foo" : "bar"} } } ]
>>> 批处理启动(自检测配置更新重新启动)
java -jar moco-runner-0.11.0-standalone.jar http -p 12306 -c test.json
参考:
https://www.ibm.com/developerworks/cn/web/1405_liugang_mocowebtest/ https://github.com/dreamhead/moco
一张图看git命令 链接
相关文章推荐
- php接口开发入门(一)--Mac10.10下环境搭建
- Eclipse平台利用SWT Designer6.0进行图形界面开发入门--搭建开发环境篇
- Symbain S60 入门之旅, 开发环境搭建
- Windows mobile 开发入门—环境搭建(转)
- hadoop入门之单机版环境搭建(多图)
- 【转载】黑莓开发学习(入门教程)02-开发环境搭建
- J2ME入门专题:搭建开发环境
- JBPM3.2学习入门--环境搭建
- arcgis api for flex 开发入门(一)环境搭建
- arcgis api for flex 开发入门(一)环境搭建<转>
- Qt for Symbian 入门之环境搭建
- SWT/JFace开发入门指南之搭建开发环境
- Groovy轻松入门——搭建Groovy开发环境
- [J2EE从入门到精通第1讲]搭建Eclipse+MyEclipse+tomcat开发环境
- Windows mobile 开发入门—环境搭建
- Symbain S60 入门之旅, 开发环境搭建
- Django入门 - 环境搭建
- MyEclipse7.0+tomcat6.x+jdk6.0(JSF1.2)入门-环境搭建错误排查
- [转]arcgis api for flex 开发入门(一)环境搭建
- android 入门之一【开发环境搭建】