mock api

Apifox

mockapi.io

  • 手册 https://github.com/mockapi-io/docs/wiki/Code-examples
  • https://mockapi.io/projects 新建项目
  • 点击 new resource
  • 取一个 resource name,编辑返回内容
  • 过滤 xxxx?filter=hello 或是 xxxx?filter=hello 根据所有内容过滤,或是使用 field_name=heloo 使用指定属性过滤
  • 翻页 page=1limit=10 指定页码及每页多少项,页码从 1 开始
  • 排序 sortBy=title 根据属性 title 进行排序,order=desc 降序排序
  • 免费版只能创建 2 个 resource
上一篇
下一篇