gui: refactor resource rest address definition