Activity Forums Salesforce® Discussions What are the rules for Mapping URI S in salesforce

  • Kumar

    Member
    January 23, 2017 at 7:51 am

    Hi Vikas,

    URL mapping is used to expose your APEX class as a REST resource.

    These are some considerations when using this annotation:

    • The URL mapping is relative to https://instance.salesforce.com/services/apexrest/.
    • A wildcard character (*) may be used.
    • The URL mapping is case-sensitive. A URL mapping for my_url will only match a REST resource containing my_url and not My_Url.
    • To use this annotation, your Apex class must be defined as global.

    For more info regarding path mapping guidelines and what happens when the request URI is not the same, go to this link.

    Hope this helps.

     

    • This reply was modified 7 years, 11 months ago by  Kumar.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos

Pros & Cons of Lightning Component vs. 3rd party frameworks in Salesforce UI development

Video in

Nikita drops by to share his invaluable experience of using popular 3rd party frameworks in Salesforce. http://media.blubrry.com/salesforceway/audio.xmcdn.com/group42/M05/25/57/wKgJ81rXk6XjaZIAAU_I_KtprFM998.m4a