rest controller for process diagram