rest url works fine