Implemented REST controller for generated models