I would like to test a Get endpoint in Workbench via the rest Explorer. However I'm getting a services not found error when executing. Any suggestions on what I need to change? Below is the endpoint I'm entering /services/data/v40.0/FEApplicationDataById/V1

Here is my Rest Class:

global class FEApplicationDataById {
global static JSONData getFEApplicationData () {
    RestRequest req =  RestContext.request;
    RestResponse res = RestContext.response;
    res.addHeader('Accept', 'application/json');
    String pidm  = req.params.get('pidm');
    String idStringList = req.params.get('idStringList');
    //calls the populateFEAppDataById method to do json population.       
    JSONData feData = populateFEAppDataById(pidm, idStringList);

    return feData;  

1 Answer 1


You have to use following:


Workbench conveniently takes care of the ...yourInstance.salesforce.com... part so in the Rest Explorer input box you just need to change /services/data/... to /services/apexrest/... when trying to access your Custom Apex REST resources.

For more information, refer Apex Web Services


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .