Make some functions working in the rest api

create, update, delete and retrieveMultiple are now working