mock-server - a fast api mock server written by golang

In today app development, we need apis. but at the very begin of the development progress. we can not easily to written api very quick. 

so for speed cross team work. we need provided  apis to ios/android developers. 

so we need mock an api server for this purpose. 

Then i wrote this project. 

Mock server  https://github.com/netroby/mock-server

This app will mock http api server, listen default on :7890, it accept any post/get

Run

To quick run a mock server

docker run --restart=always -d --name ms -v $(pwd)/www:/www -p 7890:7890 netroby/mock-server 

make sure ./www exists, and mock-server will try to find exists file to handler api request.

such as ./www/api/version.json will handle as http://example.com/api/version.json

The default MIME type for response, will be application/json

Post: 2017-05-02 14:02:42

Views: 1

Follow me: @twitter @github
Scan QR code and Donate me via alipay:
donate me via alipay
Donate me Bitcoin:136MYemy5QmmBPLBLr1GHZfkES7CsoG4Qh
Powered by GoSense RSS