flexapi
v0.0.6
Published
Flexible swap mode and API request client
Downloads
8
Maintainers
Readme
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
}
}
}