Add new functions for REST Api and testing cases.