Add rest controller to camunda docker webapps

Hello,

I’m using this camunda docker image :
GitHub - camunda/docker-camunda-bpm-platform: Docker images for the camunda BPM platform and i’m deploying my webapp when launching the docker image as it is describe here : GitHub - camunda/docker-camunda-bpm-platform: Docker images for the camunda BPM platform .

No problem it is working well , but now what i need to do is adding a REST Controller to the webapp, but when i do it , i don’t know how to contact my api’s .

For the rest engine , for example , i’m calling get localhost:8080/engine-rest/tasklist

But for my application when call get localhost:8080/my-app/test (with a get mapping “test” on a simple java method doing a System.out.println() ) i get 404 not found .

It’s look like just adding a controller is not enough , do you know what things i need to do to make this working? (I think i need to expose an endpoint on my app but don’t know how :smiley: ) Thanks .

Finally it is ok , i was seeking something too complicate, my purpose was to manipulate the camunda process engine through rest api , So i did a spring boot application connecting to the bpm database and then i can use the process engine . Sorry guy :smiley:

1 Like