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
  • Web API needs Basic Authentication. In basic authentication, you need to create a string in this format: "Basic ENCODEDUSERNAME:ENCODEDPASSWORD". The username and password need to be encoded in Base 64. Then pass this authentication in the Header with the key "Authorization" and value equal to the "Basic ENCODEDUSERNAME:ENCODEDPASSWORD"

    If you are going to call the web api from Java, you need to follow the above steps sequentially.
    If you just want to test it from outside Appian, use a chrome plugin like "Postman". Postman will encode the values for you. Just add a header in the request.
Reply
  • Web API needs Basic Authentication. In basic authentication, you need to create a string in this format: "Basic ENCODEDUSERNAME:ENCODEDPASSWORD". The username and password need to be encoded in Base 64. Then pass this authentication in the Header with the key "Authorization" and value equal to the "Basic ENCODEDUSERNAME:ENCODEDPASSWORD"

    If you are going to call the web api from Java, you need to follow the above steps sequentially.
    If you just want to test it from outside Appian, use a chrome plugin like "Postman". Postman will encode the values for you. Just add a header in the request.
Children
No Data