Project Based Learning (A.I).pptx detail explanation
In salesfroce there are 4 types of api
1. In salesfroce there are 4typesof api
REST API
SOAP API
Bulk API
Streaming API
REST API-:REST API is a simple and powerful web service based on RESTful principles. It exposes all
sorts of Salesforce functionality via REST resources and HTTP methods. For example, you can create,
read, update, and delete (CRUD) records, search or query your data, retrieve object metadata, and
access information about limits in your org. REST API supports both XML and JSON.
Because REST API has a lightweight request and response framework and is easy to use, it’s great for
writing mobile and web apps.
SOAP API
SOAP API is a robust and powerful web service based on the industry-standard protocol of the same
name. It uses a Web Services Description Language (WSDL) file to rigorously define the parameters for
accessing data through the API. SOAP API supports XML only. Most of the SOAP API functionality is
also available through REST API. It just depends on which standard better meets your needs.
Because SOAP API uses the WSDL file as a formal contract between the API and consumer, it’s great for
writing server-to-server integrations.
Bulk API
Bulk API is a specialized RESTful API for loading and querying lots of data at once. By lots, we mean
50,000 records or more. Bulk API is asynchronous, meaning that you can submit a request and come
back later for the results. This approach is the preferred one when dealing with large amounts of data.
Bulk API is great for performing tasks that involve lots of records, such as loading data into your org for
the first time.
2. Streaming API
Streaming API is a specialized API for setting up notifications that trigger when changes are made to y our
data. It uses a publish-subscribe, or pub/sub, model in which users can subscribe to channels that
broadcast certain types of data changes.
The pub/sub model reduces the number of API requests by eliminating the need for polling. Streaming
API is great for writing apps that would otherwise need to frequently poll for changes.
1The API-first approach to development at Salesforce lets customers:
A Extend functionality across Salesforce features
B Choose the API that's best suited to their needs
C Build apps for the AppExchange
D All of the above
2REST API is best suited for which of these use cases?
A Loading lots of data into your org for the first time
B Writing a mobile or web app
C Deleting 100,000 records at once
D Pushing notifications whenever data is changed
3 SOAP API is best suited for which of these use cases?
A Building a server-to-server integration
B Writing an app that requires using JSON
C Updating thousands of records at once
D Building a slick UI for a mobile app
4 Bulk API is best suited for which of these use cases?
A Deleting several records, one record at a time
B Writing a mobile chat app
C Building a new Salesforce UI
D Deleting 100,000 records at once
5 Streaming API is best suited for which of these use cases?
A Notifying users whenever a record is deleted
B Creating hundreds of account records at once
C Writing an app where the use of XML is required
D Using a WSDL file to specify the operations allowed on standard and custom objects
6 What are all the factors that contribute to the total API limit calculation?
A Org edition and API usage over the previous month
B Org edition, license type, and expansion packs
C License type and expansion packs
D Number of Salesforce employees forced to walk the plank