0.0.6 • Published 5 years ago

flexapi v0.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

flexapi

Flexible swap mode and API request client

Config object initial thought

{
  "mode": "fake | real | mix",
  "real": {
    "client": "axios | fetch",
    "instance": axios,
    "errorHandler": () => {},
    "config": {
      "axios": {},
      "fetch": {},
      "ajax": {}
    }
  },
  "fake": {
    "delay": 1000,
    "endpoints": {
      "getExampleEndpoint": getExampleHandler,
      "postExampleEndpoint": postExampleHandler,
      "editExampleEndpoint": editExampleHandler,
      "deleteExampleEndPoint": deleteExampleHandler
    }
  }
}
0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago

0.0.1-0

5 years ago