abstract admin api controller for models;