Hi Everyone,
I am new to Integrations/Web API concept and need your suggestion/knowledge sharing on the below points.
I have created a Web API and it fetches the data of few fields from Appian DB in JSON which I want to be accessed out of Appian by Non-Appian users
When I tested using the web API url where I have already logged in as system Admin It is fetching the data and an option to download the data as a document is coming in browser.
But if the same url is accessed by non-Appian user the document is not getting opened or not even getting saved. As per my requirement even non-Appian users should access this data. Any suggestions for achieving this requirement would be helpful. And below are my questions on Web API
1) Can Web API be used by Non-Appian users for accessing or writing data in/out of Appian?
2) When I have gone through about Web API in community, it was mentioned that a Basic user Authentication is needed for accessing Web API. Can a generic Basic user account can be used by multiple users?
3)How to add the authentication details in Web API url
4)For authentication purpose any configuration to be done in Admin Console
4) I came to know that some tools like Postman,swagger,Advanced REST client tool etc. are used for accessing the url, are any of those tools mandatory to access the Web API? I can't get any of them in our client network.
Your inputs will be very much helpful. Thanks in advance.
Discussion posts and replies are publicly visible
Hello Bhanu,
1) no the web api requires a named user on the system
2) yes a basic user can use a webapi as long as that user has enough rights to execute it.
Regarding your question if one user can be used by multiple, I recommend to reach support or your trusted vendo to figure it out if you contract allows it. I don’t thinks so but please check it.
3) the authentication goes on the http headers.
4) you create users on the admin console and assign groups in designer. So it is a mix of places to set it up.
5 ) googling “postman test rest api”I found this link,
I have to say that you can even test it using Curl command in Linux ,
curl -u [username]:[password] https://[Appian Site]/suite/webapi/[webapi path]
or any tool that allows you to make a http request.
Take a look
Hope this helps
Jose
Thank you Josep for your response. your information is very clear and helpful.
Regarding point 4, what I mean to ask is other than creating basic user and providing security through Group to Web API, is there any set up need to be made in Admin Console like adding the site as trusted site if I the Web API url is accessed in a site out of Appian box?
Once again Thanks for all the inputs...
Unless you are trying to do something extra like single sign on, or calling another service in the webapi then doesn’t sound like you need anything else.
Is there anything that you saw on the console that could be causing confusion? Or was the reason for you to ask this?
Hi Josep, I remember some where in apian community discussions I have read about it so was confirming on the same. Thanks for the information.