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
sandeep kumar 140sandeep kumar 140 

Rest API in Salesforce

Hi All,

I would like know about the REST API in Salesforce. I need to integrate the external system with Salesforce. Previously i used to send the enterprose WSDL to Partner(which is SOAP). But now, partner is saying the they are not working on SOAP. They need REST based API.
In this case which wsdl I need to share with them.

Aappriciate your help..
 
 
HNT_NeoHNT_Neo
REST really only uses the HTTP verbs (GET, PUT, POST, DELETE, …) on a resource. All operations on a resource are supposed to be represented that way. POST is used as a catch all for when you can't express your business logic in a way that fits into the other three. That is why there isn't really a WSDL for a REST service since you only ever have 4 methods on the resource.
But you still have the possibility to describe a REST web service with WSDL 2.0.

https://www.ibm.com/developerworks/webservices/library/ws-restwsdl/

Check out these tools to define RESTful API just like WSDL for SOAP:

Google Discovery (https://developers.google.com/discovery/) service format.
WADL (https://wadl.java.net/)
Swagger (http://swagger.io/)
Apiary (https://apiary.io/)
HNT_NeoHNT_Neo
REST API provides a powerful, convenient, and simple REST-based web services interface for interacting with Salesforce. Its advantages include ease of integration and development, and it’s an excellent choice of technology for use with mobile applications and web projects. However, if you have many records to process, consider using Bulk API, which is based on REST principles and optimized for large sets of data.
Harshit Garg 6Harshit Garg 6

Hi sandeep kumar 140,

Please follow below trailhead link.

Link- https://trailhead.salesforce.com/modules/api_basics/units/api_basics_rest

By the help of above link might be your issue will be solved.

Please choose my answer as best answer.

Regards,
Harshit Garg
harshitgarg2591@gmail.com

 

Ajay K DubediAjay K Dubedi
Hi Sandeep,

REST API provides a powerful, convenient, and simple REST-based web services interface for interacting with Salesforce. Its advantages include ease of integration and development, and it is an excellent choice of technology. It is also use with mobile applications and web projects.
The Force.com REST API lets you integrate with Force.com applications using simple HTTP methods, in either XML or JSON formats, making this an ideal API for developing mobile applications or external clients. Force.com also supports Apex REST, which lets you create Web services on Force.com using Apex.
User-added image

Consider the following benefits of using the REST API in your integrations:
  • Ubiquitous access: Use standard HTTP method call-outs, available on every language and platform, to make requests and retrieve information from Force.com.
  • Standards-based security:  Utilize the OAuth protocol for authenticating your REST calls.
  • Data model: Gain access to the same data model and standard objects as those in SOAP-based Web services.
  • Flexible formats: Serialize data in either the XML or JSON format.
For more detail that how create REST APIs using Apex REST visit the following site :

https://developer.salesforce.com/page/Creating_REST_APIs_using_Apex_REST
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_rest_code_sample_basic.htm

Regards,
Ajay