搜索文档
在30秒内或得零编码的完整的模拟REST API
json-server
1npm install -g json-server
1{ 2 "posts": [ 3 { "id": 1, "title": "json-server", "author": "typicode" } 4 ], 5 "comments": [ 6 { "id": 1, "body": "some comment", "postId": 1 } 7 ], 8 "profile": { "name": "typicode" } 9}
1json-server --watch db.json