# mocker **Repository Path**: key232323/mocker ## Basic Information - **Project Name**: mocker - **Description**: http url mock - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 7 - **Forks**: 0 - **Created**: 2016-10-25 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: devtools **Tags**: None ## README Mocker ============ It's a http response mocker which using a meta markup content to generate document and json body. Getting started ------------------ ### intall gradle ### run task: runJetty > gradle -q runJetty ### visit in browsers eg. http://localhost:8989/index ### add a url mock using default meta content of this sample ```yaml mbegin method=get des=xxx url=/mock/test/url in: age=i+ // 年龄 amount=f? // 金额 name=s // 姓名 out: statusCode=i+ data={} ,size=i+ ,list=[] ,,people={} ,,,name=i+ // 年龄 ,,,birth=d+ // 生日 ,,class={} ,,,num=i+ // 班级 mend ``` > response like: ```json { "statusCode": 1, "data": { "size": 1, "list": [ { "people": { "name": 1, "birth": 1477615044429 }, "class": { "num": 1 } } ] } } ``` > document like: ![document](http://dl.iteye.com/upload/picture/pic/136341/1dbf7503-7430-3329-b4a3-ec3c93e792b5.png)