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
vishal@forcevishal@force 

Custom API using REST services for a Managed package

Hi people,

 

I have a requirement where I have to create API's which will then be used for creating/accessing Salesforce records. It has to be a part of a managed package. After reading a few articles, I found out that I can do this using Apex Rest API, ie, creating an endpoint and in that class defining our Get and Post methods that will be used for creating/modifying records.

 

I have never worked on API's before. So I want to know if this is the right approach? I am not sure because it has to be packaged.

 

If it is a correct approach, then how should I proceed? If I set up an endpoint, how do I test it? Pleas let me know so that I can proceed with it. Thanks in advance.

SuperfellSuperfell

There are standard api's available for doing crud operations on records,there's no need to rebuilt that.