implement REST basics