Thank you for helping me,
I have created a Visualforce page and the page data is coming from the MOCK API.
I have created a site and add the VisualForce Page in the Site as well under Public Access Settings[Site Profile]
The Page Controller access is also given the to the site profile and all the depended on classes for the API
I have gone through blogs and find out to give access to profile. I have checked all object's which is useless by the way because the data is coming from API, not from a custom object.
I am stuck here can anyone help me, please
Thank you
Http http = new Http();
HttpRequest request = new HttpRequest();
request.setHeader('Authorization','Mock'+ UserInfo.getSessionId());
request.setHeader('Accept', 'application/json');
request.setEndpoint('https://test.my.salesforce.com/services/apexrest/mockapi/mockapi.json');
request.setMethod('GET');
HttpResponse response = http.send(request);