How to use WEB API ? What authentication changes will be require ?

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

Parents
  • 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
Reply
  • 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
Children
No Data