Activity Forums Salesforce® Discussions In Salesforce, how is URI used in REST API?

  • Vikas Kumar

    Member
    January 23, 2017 at 10:12 am

    Hi sushant,

    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.

    https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_annotation_rest_resource.htm

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

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos