Made the API work with DB for getOne and getAll.
Renamed the controller to AbstractRestController.