How to create custom rest api and make it as part of flowable-task

I have already replied to you here. For the future please do not double post the same question as it is more difficult to find the correct answer.