#249 Rest api

Update rest controller