Fix rest log and Complete API