pasting the REST_Controller
rest config and format library