Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Salesforce
  3. Question
Salesforce

RestResource Annotation - What is the urlMapping To?

Asked by Darsh K Jun 1, 2023 735 views 1 answer
Share

About this question

I have never worked with Rest Resource classes before and am trying to debug one from a previous developer.

I am looking at: @RestResource(urlMapping='/CompanyData/*') and am unsure what CompanyData is. I see from the documentation that they use standard objects in their examples so my assumption is that it would be a custom object, but it doesn't look like a typical standard object (with the __c). Could anyone enlighten me what this reference is to?

@RestResource(urlMapping='/CompanyData/*') global without Sharing class PartnerOpportunityService{ @HttpPost global static String createNewOpportunities() {...


Your answer

1 Answer

More Salesforce discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.