“Same” Consul Catalog service redirect to different service versions Traefik

Scenario, I want to Traefik to be able to differentiate service versions, let's imagine like that:

foo.bar.service/api=1 ---> 127.0.0.1/api=1
foo.bar.service/api=2 ---> 127.0.0.1/api=2
foo.bar.service -----------> 127.0.0.1/api=2

This way it would work if both services reside in the same IP/host since I could register them on consul using only the IP, but what if they are on different machines

foo.bar.service/api=1 ---> 183.159.14.1
foo.bar.service/api=2 ---> 185.195.13.1
foo.bar.service ----------> 185.195.13.1

How, if possible, could I achieve this?
I'm using Traefik 1.7