I’m trying to porting a SpringBoot application from Camunda 7.8 to Camunda 7.14.
According to ‘Spring Boot Version Compatibility’ page
https://docs.camunda.org/manual/7.14/user-guide/spring-boot-integration/version-compatibility/
in my pom.xml file the Camunda 7.14 properties are:
<properties>
<java.version>1.8</java.version>
<spring-cloud.version>Greenwich.RELEASE</spring-cloud.version>
<camunda.version>7.14.0</camunda.version>
<camunda.spring-boot.version>7.14.0</camunda.spring-boot.version>
<spring-cloud.version>Hoxton.SR4</spring-cloud.version>
</properties>
and dependencies are:
<dependency>
<groupId>org.camunda.bpm.springboot</groupId>
<artifactId>camunda-bpm-spring-boot-starter-webapp</artifactId>
<version>${camundaSpringBoot.version}</version>
</dependency>
<dependency>
<groupId>org.camunda.bpm.springboot</groupId>
<artifactId>camunda-bpm-spring-boot-starter-rest</artifactId>
<version>${camundaSpringBoot.version}</version>
</dependency>
<dependency>
<groupId>org.camunda.bpm.extension</groupId>
<artifactId>camunda-bpm-assert-scenario</artifactId>
<version>0.2</version>
<scope>test</scope>
</dependency>
Then according to Camunda ‘Update from 7.12 to 7.13’ page
https://docs.camunda.org/manual/7.14/update/minor/712-to-713/#changed-default-application-paths
the default application path is changed:
REST API
- Old Application Path: /rest
- New Application Path: /engine-rest
Webapp
- Old Application Path: /
- New Application Path: /camunda
The application works fine but when I try to use the REST API by curl commands doens’t work.
For instance the following command:
curl -X GET -H "Content-Type: application/json" http://192.168.25.203:8285/engine-rest/history/process-instance?finishedBefore=2020-11-01T09:45:00.000UTC
not works because the base path “/engine-rest” not exist. I retrieve a bad request:
{"timestamp":"2020-12-17T11:09:49.622+00:00","status":404,"error":"Not Found","message":"","path":"/engine-rest/history/process-instance"}
While, with the Camunda 7.8 version, the same command with the base path “/rest” works fine:
curl -X GET -H "Content-Type: application/json" http://192.168.25.203:8082/rest/history/process-instance?finishedBefore=2020-12-01T09:45:00.000UTC
I have also added the Spring Actuator and enabled the “mappings” endpont in order to discovery the camunda REST base path…but I doesn’t find it.
Could You please help me to fix the problem?
Thanks in advance,
Giuseppe