Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
+1
person also asked this
people also asked this
Replies
16 replies
Subscribers
8 subscribers
Views
11837 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
How to use WEB API ? What authentication changes will be require ?
simples
over 7 years ago
Hi All,
#WebAPI
I have created a Web API in 16.2, have selected 'Start Process' as Template, Method is 'POST'.
It is working fine when I am testing that web API but I don't have any idea how I allow third party to access it. I tried to understand things mentioned on forum regarding Authentication but unable to understand.
Also I noticed that we don't receive URL for template 'Start Process', so I have only End Point.
Can someone please guide how we can publish our Web API and allow third party(Outside of Appian) to access it ?
OriginalPostID-247198
Discussion posts and replies are publicly visible
0
chetany
A Score Level 1
over 7 years ago
hey, also in the "Authorization" tab, specify "basic authorization"
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
venkateshs329
over 7 years ago
@Simples and Chatham: I don't have any idea about the postman , I thought you are calling web api within Appian .
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
karlg
over 7 years ago
If it can help you, made it work perfectly with the following (under powershell), it's exactly as chetany mentionned :
$user = "userLogin"
$pass = "userPassword"
$pair = "${user}:${pass}"
$bytes = [System.Text.Encoding]::ASCII.GetBytes($pair)
$base64 = [System.Convert]::ToBase64String($bytes)
$basicAuthValue = "Basic $base64"
$headers = @{ Authorization = $basicAuthValue }
Invoke-WebRequest -uri "mySuperWebApiURL" -Headers $headers
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
simples
over 7 years ago
Thanks you so much @karl, @chetan and @Venkatesh for all your input . the problem was with authorization, i created a new user and tested it using SoapUI as Premtive auth and it worked. Thanks
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
balajib4901
over 7 years ago
@simples. can you post the steps which followed for soapUi? still we are facing the 401 authentication issue.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
guruprakashk
over 7 years ago
in reply to
simples
Hi could you help me with the steps you followed
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
<