Support for RESTful api and test cases.