Change urls to rest urls