To enable the REST API you can use the following starter in your pom.xml:

    1. <dependency>
    2. <groupId>org.camunda.bpm.springboot</groupId>
    3. <artifactId>camunda-bpm-spring-boot-starter-rest</artifactId>
    4. <version>{project-version}</version>
    5. </dependency>

    By default the application path is rest, so without any further configuration you can access the api at http://localhost:8080/rest/engine.

    Because we use jersey, one can use spring boot’s common application properties.For example, to change the application path, use

    1. spring.jersey.application-path=myapplicationpath

    To modify the configuration or register additional resources, one can provide a bean which extends fromorg.camunda.bpm.spring.boot.starter.rest.CamundaJerseyResourceConfig:

    1. @Component
    2. @ApplicationPath("/rest")
    3. public class JerseyConfig extends CamundaJerseyResourceConfig {
    4. @Override
    5. protected void registerAdditionalResources() {
    6. register(...);
    7. }
    8. }

    原文: https://docs.camunda.org/manual/7.9/user-guide/spring-boot-integration/rest-api/