RESTful service for t2db