flux rest