We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
源码仓库:https://github.com/varHarrie/mokia 文档链接:https://varharrie.github.io/mokia/
简介:一个开箱即用的API模拟服务器,帮助快速创建后端原型和数据模拟。
特性:
用法:
创建入口文件(index.js):
module.exports = { port: 3000, 'GET /users'() { return this.list(() => ({ id: this.uuid(), name: this.fullName() })); }, 'GET /users/:id'(req) { return { id: req.params.id, name: this.fullName() }; }, };
启动本地服务器:
npx mokia index.js --watch
打开浏览器进入http://localhost:3000/users (opens new window),你就能看到响应信息了。
The text was updated successfully, but these errors were encountered:
收,干得漂亮 :)
Sorry, something went wrong.
No branches or pull requests
源码仓库:https://github.com/varHarrie/mokia
文档链接:https://varharrie.github.io/mokia/
简介:一个开箱即用的API模拟服务器,帮助快速创建后端原型和数据模拟。
特性:
用法:
创建入口文件(index.js):
启动本地服务器:
打开浏览器进入http://localhost:3000/users (opens new window),你就能看到响应信息了。
The text was updated successfully, but these errors were encountered: