fixed the REST API used by web side