rest api initialization