api added rest functions