added REST APIs