Skip to content

receive mock data, keep status, build mock data map file

Notifications You must be signed in to change notification settings

wangjinyang/receive-mock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

通过post传输mock数据

http://localhost:3001/user/info2
{
    "method":"GET", // mock的方法
    "content":{     // mock的数据
        "state":1,
        "message":"success"
    }

保存结果为

mock数据的状态
{
	"UserInfo2": {
		"url": "/user/info2",
		"POST": {
			"jsonPath": "POSTUserInfo2.json",
			"updateTime": 1539690818669,
			"size": 31
		},
		"GET": {
			"jsonPath": "GETUserInfo2.json",
			"updateTime": 1539690952886,
			"size": 31
		}
	}
}

mock数据的map对象

module.exports = {
	"/user/info2": {
		"POST": "POSTUserInfo2.json",
		"GET": "GETUserInfo2.json"
	}
}

About

receive mock data, keep status, build mock data map file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published