Add Mock functionnality for REST service