REST API connector and authentication

Hi bonita users !

I would like to know how to properly use the REST API connector.

I made a smal REST API extension to test this design pattern, but the API return -401 error.
As the API succesfully respond throug the browser (as long as I’m logged to Bonita portal), I supposed that the connector will work the same way.

Can you provide an exemple of how to authenticate properly and and retrieve the correct user and password ?

Thanks & Regards

I just provide an answer on the French version of this question. For English users a quick summary: this is not an usual design to have Bonita REST API connector calling a Bonita REST API (standard API or REST extension). In such situation a custom connector or usage of Groovy script connector is maybe more appropriate.