Recently our on-premise sharepoint is moved to SP O365 .
We used to read the data from on-premise sharepoint site using REST service now we have to point the service to SP O365 site.
We are not getting the data in JSON response. Can you please guide how to read the sharepoint O365 site list data?
REST Service format - https://***.com/sites/dev/SPApps/_api/web/Lists/getbytitle('SharepointList')/
I am getting the error - System.UnauthorizedAccessException Access denied. You do not have permission to perform this action or access this resource.
I am using postman to test the REST service and chose basic authentication and for header chose Accept- application/json;odata:verbose