set up REST