Activity › Forums › Salesforce® Discussions › What is the use of ‘param’ in Salesforce REST API?
Tagged: Endpoint, Header, JSON, Parameter, Salesforce Apex Controller, Salesforce Query, Salesforce REST API, Salesforce Visualforce Page
-
What is the use of ‘param’ in Salesforce REST API?
Posted by Anurag algoworks on July 13, 2018 at 3:08 PMWhat is the use of ‘param’ in Rest Api? What are the parameters that we pass in it?
madhulika shah replied 7 years, 8 months ago 3 Members · 2 Replies -
2 Replies
-
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.
- [adinserter block='9']
-
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.