call to rest service implemented