Change context path for spring boot camunda without REST API

Hello,

Is it possible to change the context path for everything in camunda without REST API?

Thanks for help

@anik yes its possible. You can set it in application.properties file like below:

spring.jersey.application-path: <context-path>

or in spring bootstrap.yml you can set it up like this.

spring:
  jersey:
    application-path: <context-path>

@aravindhrs aravindhrsThank you for your answer, but this is a way to change the context path for REST API. But in my case, I don’t want to change the context path for REST API. Rest API context path should be the same, but the context path for other components should be changed.

@anik if you want to change context-path partially for certain components, then you can checkout the project from github, apply changes and build yourself.

import org.camunda.bpm.spring.boot.starter.rest.CamundaJerseyResourceConfig;
@Component
@ApplicationPath("/rest")
public class JerseyConfig extends CamundaJerseyResourceConfig {

  @Override
  protected void registerAdditionalResources() {
    register(...);
  }

}

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

For me the solution above did not work - i’ve ended up with the following configuration in application.yaml
server.servlet.context-path: <context-path>

Hi. If separate context paths is still an issue, you can upvote here: https://jira.camunda.com/browse/CAM-8302

Any idea, when will this get released ? It will be very useful in scenarios where camunda engine is embedded withing your web app.