How does the API count increase when i use a REST API. I have a REST API apex class to insert records into a custom object, and I am trying to figure out how many API calls it takes to process one record creation request .
I was using the a coarse grained request through workbench for the following apex class- I see that my API count increases by more than one.
@RestResource(urlMapping='/MultiEvent/*')
global with sharing class MultiEventRestController{
global class RequestBody {
global List<Event__c> events;
}
@HttpPost
global static List<Event__c> createBulk(MultiEventRestController.RequestBody req) {
insert req.events;
return req.events;
}
}