06
03/18
salesforce REST services demo
@RestResource(urlMapping='/Cases/*') global with sharing class CaseManager { @HttpGet global static Case getCaseById() { RestRequest req = RestContext.request; String caseId = req.requestURI.substring(req.requestURI.lastIndexOf('/')+1); Case result = [SELECT CaseNumber, Subject, Status, Origin, Priority FROM Case WHERE Id = :caseId]; return result; } /* H...