Skip to main content
Question

AssystREST authorisation

  • September 4, 2023
  • 3 replies
  • 199 views

Forum|alt.badge.img
  • Do Gooder (Customer)
  • 2 replies

I’m a bit of a newbie to AssystREST and so maybe missing something glaringly obvious so please forgive me.

 

I am trying to test AssystREST API with very little success.

https://Server:port/assystREST/v2/raml

I can run the above and bring back all the resourceTypes from the api server, however trying to bring back an event based on the ID gives me a permission issue.

 

When using postman to test I just get a 401 unauthorised code.

 

 

3 replies

Forum|alt.badge.img+10
  • Hero (Employee)
  • 46 replies
  • September 4, 2023

When you go to that URL you are asked to login. You will get the permissions linked to the user you login as. 

This wiki page has general guidance on using the REST and has some examples as well: https://wiki.axiossystems.com/assyst11-6Wiki/index.php/Category:assystREST


Forum|alt.badge.img
  • Author
  • Do Gooder (Customer)
  • 2 replies
  • September 4, 2023

Is it not possible to pass authorisation to the api, kind of makes it difficult to automate something if you have to manually login when accessing the url


Forum|alt.badge.img+10
  • Hero (Employee)
  • 46 replies
  • September 5, 2023

Hi,

 

if you want to automate using assystREST then you can use a tool like Curl to send the commands to asssystREST. Using a tool like Curl will allow you to provide the login credentials.

 

My previous comments where about the permissions linked to the user. Does the user you are currently logging in with have permissions to view the call you are trying to retrieve? 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings