Salesforce
PDII · Question #186
Which annotation exposes an Apex class as a RESTful web service?
The correct answer is C. @RestResource. See the full explanation below for the reasoning.
Question
Which annotation exposes an Apex class as a RESTful web service?
Options
- A@AuraEnabled
- B@HttpInvocable
- C@RestResource
- D@RemoteAction
How the community answered
(41 responses)- A5% (2)
- B2% (1)
- C83% (34)
- D10% (4)
Community Discussion
No community discussion yet for this question.