I have created an Endpoint using the @Rest Resource(urlmapping='') followed by apex class having a method as HTTP POST which returns a string when the endpoint is called...i have called this endpoint from other org ..then i am getting error as 404 i.e. not found. please can you explain where i am going wrong and help me to create the endpoint without oAuth.


Im not sure whats inside your URL mapping. Assuming it as a randomtext like "callmyservice" - your class has the below text at the top :
@Rest Resource(urlmapping='/callmyservice/*')

Considering your server instance as na8 he end point will be something like : https://na8.salesforce.com/services/apexrest/callmyservice”.

Hope this helps!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.