Salesforce Apex External Data Sources – Yelp API

Sample code to create Yelp Bussiness API as an external data source and create an external object. Create  DataSource Connection class with below code.

Create Datasource Provide Class with below code

Now create new External data source as shown below.

Click save and after that click validate and Sync to create an external object

Create a tab which will display the data as shown below.