add function get_by_id for admin access to all resources