Expose API in Spring Boot Application

Hi! I have tried the following:
create a spring boot application
Include camunda / add bpmn
call camunda api with a simple GET request

I created endpoints withRestController annotation, also can work with JerseyConfig class and Component annotation. They work, they are available at localhost:8080/path/to/endpoint. However, when I try to expose camunda api in JerseyConfig, like this:


I still got no response for:
http://localhost:8080/engine or
http://localhost:8080/engine-rest/ or any other possible endpoint.

I checked if there is a ProcessEngine instance created. After calling ProcessEngineConfiguration.createStandaloneProcessEngineConfiguration();

serviceProvider.getDefaultProcessEngine(); returns “default”, but still no response for the GETs.

All I want to achieve is to expose the process engine API in a spring boot application. I could not find any step-by-step tutorial but found many contradicting/unclear instructions. Could someone help me? Thanks!

Hi @KissCs,

have you tried to use Camunda Stpring Boot Starter extension? Here it is

You can look at this example, if you need only REST API (without webapps): https://github.com/camunda/camunda-bpm-spring-boot-starter/tree/2.2.0/examples/example-web

Please be aware, that this community extension is now under transition to official Camunda support, so the docs for current 2.3.0-SNAPSHOT version can be misleading sometimes, but you can fully rely on v.2.2.0 (and ealier).

1 Like

Thank you so much! It works!
Now I can go on experimenting with it.