adapter/rest: fix url generation