Test Class for Apex REST Callout

A Developer wants to implement a connection from Salesforce to a 3rd party API using Apex; A great method for retrieving external data is to implement a HTTP callout process using Apex. How can we run test class for callout ? As you may know, Apex Test Classes will not let us conduct a HTTP callout; therefore, it…

How to call Rest Service using OAuth REST API ?

We created a REST Service in Salesforce in our previous blog, and now we want to call the REST service from another application. Salesforce DO NOT allow using Basic Authentication (Username & Password) for incoming REST calls. This is still true even if you are calling from another Salesforce instance.  We have to use OAuth to authenticate…

How to create and use Apex Rest Services in Salesforce ?

The Force.com REST API lets you integrate external system with Force.com applications using simple HTTP methods, in either XML or JSON formats, making this an ideal API for developing mobile applications or third party applications. Following are the benefits of using the REST API in your integrations: Easy Access: Use standard HTTP method call-outs, available on…