You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Request.js is an Axios powered module written some time ago to normalise our request patterns on the client side.
Things that the request.js provides:
Progress events as callback (back to requester)
A global page-level progress event inside a navbar container by passing only one boolean "globalProgress:true"
Validation of all the parameters passed into it
In-built API versioning support
In-built content and response type handling
Normalised response status handling
Normalised authorisation handling (this was the original motivation)
In addition if we at any point want to extend this further, we can always split it into for instance sub classes.
Also if we want to for whatever reason change axios to another module, we can do that without a major refactor.
Describe the solution you'd like
Add a section to styleguide to enforce this as the de-facto request module
Add examples of usage
The text was updated successfully, but these errors were encountered:
One possibility would be also to split this into "Akkadu_Components" as a installable module, this way we can also have versioning and maintain module specific in-detail documentation and just have a reference in the style guide.
Might be too early to separate into an npm module until we can use it elsewhere, but this is a good direction and I'd support a request wrapper we use for all client side requests
Is your feature request related to a problem? Please describe.
Request.js is an Axios powered module written some time ago to normalise our request patterns on the client side.
Things that the request.js provides:
In addition if we at any point want to extend this further, we can always split it into for instance sub classes.
Also if we want to for whatever reason change axios to another module, we can do that without a major refactor.
Describe the solution you'd like
The text was updated successfully, but these errors were encountered: