Added new RESTFUL API.