In Part 1 of this topic, we saw how to do OAuth authentication with Salesforce using Spring. In this part, we'll see how to fetch and update records and upload documents to Salesforce using Force.com REST API.
Using Force.com REST API from Spring Web application - Part 2: Manipulating Salesforce objects
Force.com REST API Resources are used to manipulate objects, execute queries, display API information etc. Each resource is tied with a specific resource URI which is used to read, create or update record. All URIs have common base URI: "http://domain/services/data". Domain is usually instance URL retrieved during authentication, or a domain pointing to some Salesforce instance.