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
Pradip Kr. ShuklaPradip Kr. Shukla 

Facing Issue in Apex REST Callouts

Hi All, 

In "Apex REST Callouts" unit of "Apex Integration Services" i am facing issue with given endpoint URL
"https://th-apex-http-callout.herokuapp.com/animals/:id".
I am not able to figureout that what will be the value of id in above url(last parameter).
Best Answer chosen by Pradip Kr. Shukla
Prakash  RaiPrakash Rai
id in the URI represents the primary key of a record. 

https://th-apex-http-callout.herokuapp.com/animals/1               returns chicken
https://th-apex-http-callout.herokuapp.com/animals/2               returns bear

All Answers

Prakash  RaiPrakash Rai
id in the URI represents the primary key of a record. 

https://th-apex-http-callout.herokuapp.com/animals/1               returns chicken
https://th-apex-http-callout.herokuapp.com/animals/2               returns bear
This was selected as the best answer
Pradip Kr. ShuklaPradip Kr. Shukla
Thanks Prakash Rai