function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ganeshjujjuruganeshjujjuru 

What is REST API ..? Why we use this .? In which case i use this..?

Can any body help me what REST API..? what is the main purpose of use this REST API in salesforce.? in which situation we use this REST API. Can any body send sample code of RESR API.?

Devender MDevender M
Hi Ganesh,
Go throw this link hope it helps.

http://www.salesforce.com/us/developer/docs/api_rest/
ganeshjujjuruganeshjujjuru

Thnx Mr.Devender M i know about that developer guide bt i am not getting any thing will any body send me briefely why we use REST API , in wihich situation we use REST API. send brief explanation and send exapmle code.

sandeep@Salesforcesandeep@Salesforce

Hi Ganesh, 

 

REST - > Representational State Transfer Protocol 

 

This is basically use to access external logic ( exposed webservice) just by hitting a url witout creating any envalope or enviorment unlike SOAP API.

 

Today mostyl developer prefer to use this API to access webservice. this techbology is based on JSON not xml.

Here is complete detail of REST API 

Force.com REST API Developer's Guide - Salesforce.com

Ashish_SFDCAshish_SFDC

Hi Ganesh, 

 

This is one really good video, check that out. 

Hands-on Training: Introduction to the REST API(47)

http://www.youtube.com/watch?v=NXcbofCuKTA&list=PLFDB9C9B4670B91D1

 

Regards,

Ashish

Gary RalstonGary Ralston
Hello Ganesh

REST (Representational State Transfer) API is a type of web service that allows you to interact with Salesforce from external systems.
In Salesforce, it enables you to access, createupdate, or delete records using simple HTTP methods such as GETPOSTPUT, and DELETE.

REST API is used in Salesforce to perform integration with other systems, such as third-party applications or websites. It provides a way for external applications to access Salesforce data in a programmatic way.

Some use cases for REST API in Salesforce include:
  • Integrating Salesforce with external systems, such as a customer portal or partner community
  • Building custom mobile or web applications that interact with Salesforce data
  • Retrieving data from Salesforce for use in external reporting or analytics tools
If you want to learn more about REST API in Salesforce, I highly recommend checking out the at https://arrify.com/salesforce-rest-api-endpoint/. This article provides a complete guide, along with examples and best practices.