Implemented REST API for contancts