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

REST controller - Apex test Code Coverage
Hello,
I have like 10 REST controllers with GET/PUT/POST methods. Are there any samples of Apex unit tests? I need to be able to upload this app so somehow I need to get to 75% mark .
Any help will be greatly appreciated.
Thanks,
Kam
Here's an example:
This is from memory so there may be syntax issues.
Note that in the pilot we do not support packaging, so you'll be unable to upload any package that contains an apex REST class.
Hello,
Thanks for your help. I will try it out. Hopefully it will be work for POST/PUT/DELETE
Thanks,
Kam
Do you know when the pilot is due to end and apex REST classes will be supported in packaging?
The GA date is not yet available.