+ Start a Discussion

Apec Webs services Trailhead - cant get a response using Workbench

Hi All. I have worked my way through the first two modules of this trailhead and have hit a wall. I create the classs as described in the Trailhead - the class is called 'CaseManager'. I then use Workbench to hit the uri '//na35.salesforce.com/services/apexrest/rest/cases/' but get a response that is different than the example. I get:


HTTP/1.1 404 Not Found Date: Thu, 22 Jun 2017 22:19:56 GMT Strict-Transport-Security: max-age=0; includeSubDomains X-Content-Type-Options: nosniff X-XSS-Protection: 1; mode=block Content-Security-Policy: referrer origin-when-cross-origin; upgrade-insecure-requests Set-Cookie: BrowserId=HvJXbI8uQsO7m9UwN4_40Q;Path=/;Domain=.salesforce.com;Expires=Mon, 21-Aug-2017 22:19:56 GMT Content-Type: text/html; charset=UTF-8 Transfer-Encoding: chunked

any ideas what I am doing wrong?

Raj VakatiRaj Vakati
Hi ,
You no need to give complete endpoint URI in the workbench  . give only /services/apexrest/Cases/ .