Activity Forums Salesforce® Discussions What is the use of 'param' in Salesforce REST API?

  • chanchal kumar

    Member
    July 17, 2018 at 12:29 pm

    hello Anurag,

    "param" is used to pass values from visualforce page to APEX cotroller.

    REST APIs have four types of parameters:

    • Header parameters: Parameters included in the request header, usually related to authorization.
    • Path parameters: Parameters within the path of the endpoint, before the query string (?). These are usually set off within curly braces.
    • Query string parameters: Parameters in the query string of the endpoint, after the ?.
    • Request body parameters: Parameters included in the request body. Usually submitted as JSON.
  • madhulika shah

    Member
    September 14, 2018 at 9:28 am

    Hi Anurag,

    Parameters are options you can pass with the endpoint (such as specifying the response format or the amount returned) to influence the response. There are four types of parameters: header parameters, path parameters, query string parameters, and request body parameters.

    The different types of parameters are often documented in separate groups on the same page. Not all endpoints contain each type of parameter.

    Thanks.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos