I need to generate or retrieve report from a SharePoint list using API endpoint. I believe we can request it in JSON by setting the Request headers to "Accept", "application/json; odata=verbose".
Kindly help with the code.
For example for getting the number of Applications submitted successfully or not between a set time period.
{SchemeSiteUrl}/_api/web/lists/getByTitle('Applications')/items?$select=SubmissionId&$top=100000&$filter=(Created%20gt%20datetime%272023-10-01T01:00:00%27)%20and%20(Created%20lt%20datetime%272023-10-26T01:00:00%27)