You need to sign in to do that
Don't have an account?
Apex Rest Callout - Unable to Complete the challenge
Hi,
Im trying to complete the Rest Callout Challenge, for which i created a class called AnimalLocator which has exactly the method requested for "getAnimalNameById" as if in the below screen shot

But still I receive below error
Challenge Not yet complete... here's what's wrong:
Executing the 'getAnimalNameById' method on 'AnimalLocator' failed. Make sure the method exists with the name 'getAnimalNameById', is public and static, accepts an Integer and returns a String.
Im trying to complete the Rest Callout Challenge, for which i created a class called AnimalLocator which has exactly the method requested for "getAnimalNameById" as if in the below screen shot
But still I receive below error
Challenge Not yet complete... here's what's wrong:
Executing the 'getAnimalNameById' method on 'AnimalLocator' failed. Make sure the method exists with the name 'getAnimalNameById', is public and static, accepts an Integer and returns a String.
All Answers
In developer console, select run all and see if AnimalLocator class get 100% coverage and then after check challenge button again, it should work.
Thanks
Thank you for your reply, Im not returning the right property, once I fixed it it worked. I would have relaized it, if the error message is appropriate.
Thank you,
Balaji