REST functionality done