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
Here an example using consul
https://gist.github.com/juanpabloaj/f7dc576924f8e6c49222bcc098edd619