0.0.6 • Published 4 years ago

flexapi v0.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
4 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

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago

0.0.1-0

4 years ago