added REST API from tnt library