Use url instead of path in api