API: change api => rest