You need to sign in to do that
Don't have an account?

Trailhead Apex Integration Services - Apex REST Callouts
Hello Guys,
I am facing some issue validating the challenge for APEX REST Callout trailhead. The code works fine while testing with mock response. Looking at the debug shows that the callout to https://th-apex-http-callout.herokuapp.com/animals/:id is returning just a static response with blank name for any id provided. SF is tying to validate with a random integer id and assert with an actual value. Any suggestions?
I am facing some issue validating the challenge for APEX REST Callout trailhead. The code works fine while testing with mock response. Looking at the debug shows that the callout to https://th-apex-http-callout.herokuapp.com/animals/:id is returning just a static response with blank name for any id provided. SF is tying to validate with a random integer id and assert with an actual value. Any suggestions?
All Answers
- https://developer.salesforce.com/forums?communityId=09aF00000004HMGIA2#!/feedtype=SINGLE_QUESTION_DETAIL&dc=Trailhead&criteria=ALLQUESTIONS&id=906F0000000MJADIA4
- https://salesforce.stackexchange.com/questions/171161/create-an-apex-class-that-calls-a-rest-endpoint-and-write-a-test-class-trailhe
Hope this links will help you to fix your issue. make it solved if its works for you.Best Regards,
Rakesh Thota.
1)https://developer.salesforce.com/forums/?id=906F0000000MJiPIAW
2) https://developer.salesforce.com/forums/?id=906F0000000MJADIA4
3) https://developer.salesforce.com/forums/?id=906F0000000MJXvIAO
Let us know if this will help you