added rest api dialgo