refactored /demo REST path into rest_demo.php