Implementing a custom rest endpoint as a Process Engine Plugin (non-springboot)

Looking at:

Is there a way to implement a Process Engine Plugin that implements a custom jersey endpoint?

@Niall