Refact the Rest resources management, now available at /api