You need to sign in to do that
Don't have an account?
Naveen Jain
Apex Compile Error - Invalid Class Restrequest
I have this very simple class that I am trying to create and am getting compilation error.
Can someone help resolve this?
Error: Compile Error: Invalid class: restrequest at line 6 column 32 |
/* test*/
@RestResource(urlMapping='/Account/*')
global with sharing class AccountRestSvc {
@HttpGet
global static Account doGet (RestRequest req, RestResponse res) {
return [select id, name from account limit 1];
}
}
Your org is apparently not enabled for the pilot. Are you using a DE org? If so, post your org ID here and I'll have somebody enable you.
Can it be turned on for Sandbox?
Org id of Sandbox is - 00DT0000000KQx5
No, currently the pilot is limited to developer edition organizations. If you don't have one you can sign up for free. Please use that to try the pilot of Apex REST. Thanks.
Thanks. Working with Support to turn this on.
If you're in a DE org, just post your org ID here and I can get you enabled. No need to mess with support.