theforeman/foreman — pull request #1015 by isratrade (2013-11-12 13:45:02+00:00)
Title: fixes #3020 - API v2 - option to specify version in URL as well as in header

If specified in both, then current in URL 'wins' over header.

Order of priority
1. URL - /v1/ or /v2/
2. header - version=2
3. default - if neither URL or header is specified.