0.0.0 • Published 4 years ago
diapi v0.0.0
DiAPI
BxMon Inc - Api Aid Util
Config object initial thought
{
mode: "fake | real | mix",
real: {
client: "axios | fetch | ajax",
axios: {
instance: axios,
accessToken: null,
baseURL: 'https://example.com/api/v1',
errorHandler: null
},
fetch: {},
ajax: {}
},
fake: {
delay: 1000,
endpoints : {
getExampleEndpoint: getExampleHandler,
postExampleEndpoint: postExampleHandler,
editExampleEndpoint: editExampleHandler,
deleteExampleEndPoint: deleteExampleHandler
}
}
}