upgrade rest api to support new syntax