Skip to content

daijingfeng/mock-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mock-server

node+koa模拟数据接口

Koa需要v7.6.0以上node版本,低于此版本请先升级node

使用到的库

  • koa
  • koa-router
  • qs

执行操作

git clone https://github.com/daijingfeng/mock-server
cd mock-server
npm install
npm run mock

postman测试接口

  • 获取列表(示例接口:http://localhost:3000/api/getlist/0/5) getlist
  • 获取详情(示例接口:http://localhost:3000/api/getdetail/1) getdetail
  • 提交评价成功 comment
  • 提交评价失败 comment

About

mock server provide api

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published