working ReST call