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
User SFDCUser SFDC 

REST API & Apex Rest Api

Hi All,

what is the difference between REST API and Apex Rest Api.
How to provide REST API access of salesforce to another system with out writing any class with annotations.
Thanks...
pbattissonpbattisson
The REST API (Force.com REST API) is the generic API provided by Salesforce. The Apex REST API is an API written by yourself in apex to provide custom methods. The Force.com REST API is great for things such as CRUD operations. You should write a custom Apex REST API when you want to perform bespoke or more complicated actions. 

If your other system is just performing CRUD operations then simply use the Force.com REST API.