Hello,
I am trying to connect from my javascript front to the REST API of my camunda orchestration which is deployed as part of a spring boot application.
the called url is :
GET http://localhost:8081/orchestrator/api/engine/engine/default/history/process-instance.
i get an 401 error for non authenticated queries which is normal
First question : is it the right way to query the Engine Rest API for process definition/ instances and history?
In order to make it work , i add the JSESSIONID cookie as header to my requests,
how can i use the basic auth to query the orchestrator api instead of using the cookie?
I think same question in this stackoverflow :
when calling the rest-engine i get 404
http://localhost:8081/orchestrator/engine-rest/process-definition/finance-process:1:73c2ea9d-15f7-11e9-9484-00155d076c61/statistics
i have the spring-boot-starter-rest dependency in my pom
<dependency>
<groupId>org.camunda.bpm.springboot</groupId>
<artifactId>camunda-bpm-spring-boot-starter-rest</artifactId>
</dependency>
Thanks for your Help