Added the base for the new rest api. Needs touch up