function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sanchivan SivadasanSanchivan Sivadasan 

Multiple URL's for the same REST endPoint

How can you have multiple URL's mapped to the same URL? For an example, in the case of the contacts related to a customer, we should be able to request these via a GET request to:
/contacts/?accountId=<accountId>
/accounts/<accountId>/contacts

Is this possible? How would you do this? Thanks.
Lokesh KumarLokesh Kumar
Are you trying to write an Apex web service class or using the standard salesforce rest API.
Sanchivan SivadasanSanchivan Sivadasan
I am trying to write an Apex Webservice Class.
Michael Briseno 3Michael Briseno 3
Replying to follow this thread as they may help me on my question that hasn't been answered.