extracted base uri and resource id into variables to build the queries