2

I developed a managed package with namespace, let's call it "MyNameSpace" and an exposed APEX REST class, let's call it "MyEndPoint". :

@RestResource(urlMapping='/MyEndPoint/')
global with sharing class ApexClass{
    @HttpPost
    global static void Send(){
    }
}

I install my managed released package in my test instance and I am trying to access it in postman using this endpoint :

https://MyInstance.my.salesforce.com/services/apexrest/MyNameSpace/MyEndPoint/

But I am getting this error:

[
    {
        "errorCode": "NOT_FOUND",
        "message": "Could not find a match for URL"
    }
]

What am I doing wrong?

6
  • it is case sensitive
    – kurunve
    Sep 3, 2020 at 20:13
  • Also, if you are using a Force.com site, and it has a suffix e.g. actions, that would form part of the URL before the Services Sep 3, 2020 at 20:15
  • If you open the developer workbench and go to REST Explorer, can you see your custom endpoints listed under /services/apexrest/?
    – nbrown
    Sep 3, 2020 at 20:16
  • @identigral no it doesn't work, I tried that URL already. Sep 3, 2020 at 20:16
  • @BritishBoyinDC can you provide an example? Sep 3, 2020 at 20:17

1 Answer 1

3

If you set up a site like this one below, and add a suffix to the default web address, and the namespace is kwac, then the REST URL would be something like this: http://act272b-actdemobeta1.cs196.force.com/actions/services/apexrest/kwac/MyEndPoint

enter image description here

1
  • 1
    Well it turn out I set up the name wrong, stupid mistake, I'll leave this up for people in the future who might be searching for answer. Sep 4, 2020 at 16:18

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.