added echo to print the views, when we access  as rest api