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, 10 months ago by  Kumar.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos