rest controller generator