More REST code

More rest code added.