Add custom Rest API to Embedded Engine

I’d like do add an API inside ‘/rest’ route but I getting 404 error .
Here is my code:

@RestController
@RequestMapping(value = “/rest/customApi”)
public class TaskCamundaController {

@RequestMapping(value = “/task/{userId}”, method = RequestMethod.GET)
public void getTask(@PathVariable(“userId”) String userId) {
System.out.println(“success”);
// TODO
}
}

Is that allowed? Or there is no way to add an API inside ‘/rest’ route?

Hi @kyle,

you can embedd the Camunda Rest Api into your application: https://docs.camunda.org/manual/7.10/reference/rest/overview/embeddability/ and extend it with additional endpoints.

Hope this helps, Ingo