When you are accessing TAO 3.0, you may notice that the REST Controllers have not yet been ported from TAO 2.6 (this may change in succeeding versions).
class TestController extends \tao_actions_CommonRestModule
{
public function __construct(){
parent::__construct();
}
public function index()
{
$data = "Hello world";
$this->returnSuccess($data);
}
}
http://localhost/projects/tao/(YOUR MODULE HERE)/TestController
Step 3: Create a separate PHP file called Test.php (Check you have CURL installed) which will access your new REST Controller
Test
Testing
You should see something similar to {success world“,”version“:”3.0.0"}200