corrected rest url