I only found solutions that pass objects or primitiv datatypes to the REST API, so do I need to pass these to rebuild my sObject or is it possible to pass it as an sObject JSON? I tried to, but I can't easy handle it in my API.
@RestResource(urlMapping='/Log/*')
global with sharing class RESTLogController {
@HttpPost
global static String doPost(Log__c log) {
insert log;
return log.Id;
}
}