Update and rename test.php to api.php