Salesforce Apex Rest
17 Sep 2021
Salesforce Apex REST
Here are some guideline that I follow when I create a Apex REST Api.
Here are some bullet points that we should cover on this REST API
- We should be able to return a response object as JSON
- We should be able to return an Error Object as JSON
- We should be flexible on changing the response if that is needed.
- We should be able to specify our own response code.
- The response should be aligned with Salesforce.
Here are some comments from this class:
- The endpoint will be: services/apexrest/person/v1