fixed rest api