Apex REST Callouts
- johnsontitus
- May 24, 2020
- 1 min read
Updated: May 27, 2020
Authorize the endpoint URL of the callout:
From Setup, enter Remote Site Settings in the Quick Find box, then click Remote Site Settings.
Click New Remote Site.
For the remote site name, enter animals_http.
For the remote site URL, enter the endpoint url.
Enter the description
Click Save .
Check the following for implementation of the call out -https://github.com/JohnsonTitus/apxWebSrvCallOut.git.
It shows how to parse JSON or XML response.
To test a callout follow the following link - https://trailhead.salesforce.com/en/content/learn/modules/apex_integration_services/apex_integration_rest_callouts
Another Eg:


Comments