Implemented base rest api