Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 486 Bytes

README.md

File metadata and controls

25 lines (21 loc) · 486 Bytes

any-api-proxy

A simple proxy server that enable you to mock specific api methods whereas other methods still requested from real API

use

aproxy
  --api=https://example.com/api (required)
  --mockFile=./path/to/mock/data (optional, defaults to ./mock.json)

example

aproxy --api=https://example.com/api --mockFile=./mock.json

to mock https://example.com/api/keyA/keyB use mock file:

{
  "keyA": {
    "keyB": {
      "test": "data"
    }
  }
}