What is REST (Representational State Transfer) API?
- Force.com REST API lets you integrate with the force.com applications using simple HTTP methods.
- The beauty of RESTful service is that it's very lightweight and easy to use as compared to SOAP-based services.
What are the Characteristics of the REST API?
- Leverage HTTP- Users the existing feature of HTTP such as HTTP Caching and authentication, Native HTTP Method (GET, POST, PUT, Delete, PATCH) therefore it makes integration with mobile devices and tablet simple
- Stateless- Each request from client to the server must contain all the information necessary to understand the request, and not use any stored context on the server.
- Support XML and JSON format
What different HTTP methods are available?
- GET - Retrieve data
- POST - Create record
- DELETE - Delete record
- PUT - Upsert record
How can the data format be specified?
JSON is the default data exchange format
- To modify the format:
- Use the HTTTP accept header to specify json or xml
- Append .json or .xml to the URI
To know about other integration API at a glance, pls Click here
No comments:
Post a Comment