creating first call to restful service