Setup
$ composer install
$ php -S localhost:8000
Version 1.0 call:
curl -X "GET" "http://localhost:8000/index.php/foo" -H "Accept: 1.0"
Version 2.0 call:
curl -X "GET" "http://localhost:8000/index.php/foo" -H "Accept: 2.0"
Any version call:
curl -X "GET" "http://localhost:8000/index.php/bar" -H "Accept: 1.0"