All Projects → heimashi → Easy_mock_api

heimashi / Easy_mock_api

Licence: mit
easy mock json api

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Easy mock api

Http Fake Backend
Build a fake backend by providing the content of JSON files or JavaScript objects through configurable routes.
Stars: ✭ 253 (+74.48%)
Mutual labels:  json, mock
Okhttp Json Mock
Mock your datas for Okhttp and Retrofit in json format in just a few moves
Stars: ✭ 231 (+59.31%)
Mutual labels:  json, mock
Weld
Full fake REST API generator written with Rust
Stars: ✭ 146 (+0.69%)
Mutual labels:  json, mock
Mockit
A tool to quickly mock out end points, setup delays and more...
Stars: ✭ 1,534 (+957.93%)
Mutual labels:  json, mock
Node Quick Mock
🌞 基于Express的mock接口平台
Stars: ✭ 33 (-77.24%)
Mutual labels:  json, mock
Mimesis
Mimesis is a high-performance fake data generator for Python, which provides data for a variety of purposes in a variety of languages.
Stars: ✭ 3,439 (+2271.72%)
Mutual labels:  json, mock
Aeromock
Lightweight mock web application server
Stars: ✭ 152 (+4.83%)
Mutual labels:  json, mock
Dyson
Node server for dynamic, fake JSON.
Stars: ✭ 814 (+461.38%)
Mutual labels:  json, mock
Generator Http Fake Backend
Yeoman generator for building a fake backend by providing the content of JSON files or JavaScript objects through configurable routes.
Stars: ✭ 49 (-66.21%)
Mutual labels:  json, mock
Smoke
💨 Simple yet powerful file-based mock server with recording abilities
Stars: ✭ 142 (-2.07%)
Mutual labels:  json, mock
Jsonc
JSON with comments for Go!
Stars: ✭ 142 (-2.07%)
Mutual labels:  json
Bricks
A standard library for microservices.
Stars: ✭ 142 (-2.07%)
Mutual labels:  json
Restclient.net
.NET REST Client Framework for all platforms
Stars: ✭ 143 (-1.38%)
Mutual labels:  json
Json2builtvalue
Json to Dart built_value classes generator
Stars: ✭ 145 (+0%)
Mutual labels:  json
Dirty Json
A parser for invalid JSON
Stars: ✭ 141 (-2.76%)
Mutual labels:  json
React
JSON powered forms for React.js
Stars: ✭ 142 (-2.07%)
Mutual labels:  json
Fig
A minimalist Go configuration library
Stars: ✭ 142 (-2.07%)
Mutual labels:  json
Autocser
AutoCSer is a high-performance RPC framework. AutoCSer 是一个以高效率为目标向导的整体开发框架。主要包括 TCP 接口服务框架、TCP 函数服务框架、远程表达式链组件、前后端一体 WEB 视图框架、ORM 内存索引缓存框架、日志流内存数据库缓存组件、消息队列组件、二进制 / JSON / XML 数据序列化 等一系列无缝集成的高性能组件。
Stars: ✭ 140 (-3.45%)
Mutual labels:  json
Criterion
Microbenchmarking for Modern C++
Stars: ✭ 140 (-3.45%)
Mutual labels:  json
Json Logging Python
Python logging library to emit JSON log that can be easily indexed and searchable by logging infrastructure such as ELK, EFK, AWS Cloudwatch, GCP Stackdriver
Stars: ✭ 143 (-1.38%)
Mutual labels:  json

easy_mock_api

给客户端(Android iOS)同学的模拟json接口的小工具

用nodejs(express+react)搭建的极简的服务器,给定一个url就返回一个特定的Json数据,提供给客户端开发同学用的模拟Json服务器接口的项目,项目尽可能的简单,核心代码只有100多行,简单而实用,方便扩展。

使用场景

  • 当与服务端同学约定好Json接口的格式后,客户端同学运用这个工具配置好对应的路由url和json返回值,连接这个测试的ip地址对应的url就可以去开发业务了,好处是开发环节不会block,不用等服务端同学部署好了接口后才能去开发,提高开发效率和节奏
  • 开发中一个接口可能有好几种返回值,对应不同的case,怎样才能测试到所有的case呢?可以用这个工具配置好每个case的返回值json,快速测试好所有case

安装方法

配置相关

  • 配置端口号 项目默认是3000端口,如想配置成其他端口号请修改app.js里的倒数第三行 app.listen(3000, function ()...

效果展示

  • 接口录入页面
    • 分别录入url和对应的json 其中url不要带协议和主机名,例如像 http://www.test.com/app/ask 接口的话,URL项只填写/app/ask

image

  • 结果测试页面

image

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].