implemented service call to getResource API