Package Exports
- flexapi
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (flexapi) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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
}
}
}