These docs are for v20.3.44. Click to read the latest docs for v20.3.186.

Discussions

Ask a Question
Back to All

Asi Scheduler Endpoint

I have successfully written a POST request to fetch a token from iMIS for further use in other queries (my next query being '~/party/194' to get iMIS Id 194's information).

Even though I am using this token that I have stored with the GET request, I cannot seem to hit the API, it keeps on giving me a CORS error...

My idea is to develop a front-end app that ties in with a npm package that allows for easier calls to the API in Javascript (getPartyById(id) for example). So currently I have a localhost:3000 running on the iMIS server, a create-react-app running with a login screen to authenticate the iMIS user and receive the token.

Am I missing something? Or is it only possible to make any other API calls (GET, PUT, POST when inserting) when calling these simplified JS queries from within the iMIS website as an iPart?