I have made a project as per the requirements. I create a controller of API but doesn't show the data in the view. In the below picture the view didn't access the data from the controller. If someone knows about this please let me know.
Thanks.