I'm trying to implement endpoint hierarchy in one class. I want to make something like this:
@RestResource(urlMapping = '/endpoint')
global with sharing class Class1{
@HTTPGet
global static void methodForGet(){
}
@RestResource(urlMapping = '/endpoint/v1')
global with sharing class Class2{
@HTTPGet
global static void methodForGet(){
}
}
Will SF let me do something like that and how it should be implemented?