@RestResource annotation not available for global class

Issue #2268 resolved
René Görgens created an issue

Hi Scott,

In the context of the Apply Service Layer Principles in Apex Trailhead unit, I’m declaring the follwowing Apex class:

global with sharing class CaseCloseResource {

}

When I annotate this class with @RestResource, I'm not getting a completion while typing:

  • Whereas when I add the annotation @RestResource(UrlMapping='/case/*/close'), it is recognised and colour-coded as expected:

Btw the inspection on the method works fine:

Comments (2)

  1. Log in to comment