added http calls to rest
added rest calls