Apex Class act as a REST endpoint
I need to be able to to call our Apex Classes in Salesforce but to do so I have been informed that I need to create an Apex Class that can act as a REST endpoint for a Skuid Data Source.
Here is our current process using a VF page being triggered by a button on the Account record. This process is pulling data(JSON) from a SQL Server and displaying it on a VF page.
Controller Class – called from Visualforce page
· Url Class – builds url and appends Account record field end of url. Calls encryption class
· Encryption Class – Encrypt url using AES256bit encryption
· Header wrapper Class – Define data structure for Header record· Detail wrapper class - Define data structure Detail records
I have Classes that build my URL and grabs the data. Is there a way to just call the Controller Class? Or am I approaching this all wrong? I guess what I am thinking is that I could utilize my existing Classes which may be incorrect.
JDEWebServiceJDEService is the name of the remote site configured in SF.
If anyone could assist with what the class this would be great. We really would like to use Skuid but we need to get over this hurdle. Thanks, Michael