This module is intended for implementing an interceptor for axios when interacting with the API

Usage no npm install needed!

<script type="module">
  import advsolAxios from 'https://cdn.skypack.dev/@advsol/axios';



This package will handle authentication for all your HTTP requests to the iMIS API from client-side based iParts, automatically adding on the RequestVerificationToken, from the DOM and correctly setting the path for your HTTP requests.


npm i @advsol/axios


Add asiAxios to your imports. This will provide the Axios HTTP client with the interceptor configured; with the asiAxios object you can perform your requests.

import asiAxios from '@advsol/axios'

    .then(response => {	
        //logic goes here
    .catch(error => console.error(error));

The sample project here shows how to use this package.