Proxy to services based on Accept
header.
docker-compose up -d
- Get latest version:
curl -H "Accept: application/json" http://localhost/
- Get version 1:
curl -H "Accept: application/json+v1" http://localhost/
- Get specificaly version 2 (aka latest):
curl -H "Accept: application/json+v2" http://localhost/
- Get projects:
curl http://localhost/api/projects
- Get all events:
curl http://localhost/api/events
- Get all events related to a project:
curl http://localhost/api/projects/1/events
Thanks for your example.
Have you used Traefik header matching with consul tags?