restController to apiController