I have created the APEX REST API to fetch the data from Salesforce and send it to the external resource. For this API I have included one parameter called maxLimit which restrict the no of data (rows) returned in API response. for e.g. if maxLimit is given as 30 only 30 records will be returned. Now what I have added as a logic that if maxLimit is not specified I am taking maxLimit as 60 to avoid performance issue.
Now, my concern is I need to remove this default maxLimit logic, i.e. if maxLimit is null (Not Specified) I need to fetch and send all the data from Salesforce to an external system. I want to ask that if I remove this logic what will be the effects? Is there any Limit on API response?