added rest api method