RESTful JSON Mock Server

RESTful JSON Mock Server
 
Create the useful JSON file  users.json
{
"users": [
{
"id": 1,
"name": "carl",
"skill": "java,scala,python,perl,groovy,golang,nodejs"
},
{
"id": 2,
"name": "sillycat",
"skill": "basketball, swimming, hiking"
},
{
"name": "luohuazju",
"skill": "starcraft,warcraft",
"id": 6
}
]
}
 
Based on the JSON file as data, I will create the MOCK server 
> sudo npm install -g json-server
> json-server -p 5000 users.json
 
 
 
References:

猜你喜欢

转载自sillycat.iteye.com/blog/2193864