How to integrate K2 five with hotdocs ?

  • 23 August 2019
  • 5 replies
  • 6 views

Could not find a proper documentation for this.

Have the hotdocs advance Rest Apis, trying to integrate it with service instance in K2. Any ideas around this?


5 replies

Badge +15

If you want to using the REST service broker in K2, then you will need to generate a REST Swagger from hotdocs REST api. Only then can you register a REST service instance.


 


You can refer to here for more information on the REST service broker in K2.

I already have the Hotdocs Rest Swagger.

 

I have followed the steps from this article -- https://help.k2.com/kb001757( INTEGRATING A REST-BASED SERVICE WITH K2) . But not sure if I need to creath Oauth resource and then create a REST service instance. 

 

Also what should be the authentication mode in K2? 

 

When I used postman for the Hotdocs Apis, I was able to get a request token using url -- https://companyname.com/HdaAuth/Authorize/ServicePrincipalLogIn

 

Then I used the token as a header into other GET request apis which worked fine in the Postman.

 

Not sure how to configure them into K2 to generate corresponding SmartObjects. Please suggest.

Badge +15

Hi,


 


I just found another thread regarding HotDocs. The author managed to get this working, but did not provide the specifics. You can perhaps drop a message to the author to find out how he get this to work.


 

Even I have checked that thread before.

 

Will try to reach out to the author. Thanks.

I am able to integrate now, following the tutorial http://help.k2.com/kb001757 and was able to generate corresponding smartobjects. 

 

For the auth Bearer token, I set it up in "Default HTTP Request Headers" but that's a static one I have to manually pass the token there.

While calling the Hotdocs REST Apis (via smartobjects), is there any way to dynamically generate the token (call the Authorize Api first, get the token , pass it to the Header request) and then call the actual REST api.

 

Looked here -- https://community.k2.com/t5/K2-Blackpearl-Forum-Posts/How-toHandle-Authorization-Token-while-Creating-Endpoints-REST/m-p/101513#M33756 but not much help other than what I have already done.

Any suggestions for this?

Reply