Salesforce
PDII · Question #110
What is a valid request for the following REST method? (Choose two.) @HttpPost global static void myPostMethod(String sl, Integer il, Boolean bl, String 52)
The correct answer is A. <request> <sl>my first string</sl> <11>123</il> <32>my second string</32> <b1>false</bl> D. il" : 123, "S1" : "my first string", "S2" : "my second string", "bl" : false. See the full explanation below for the reasoning.
Question
What is a valid request for the following REST method? (Choose two.) @HttpPost global static void myPostMethod(String sl, Integer il, Boolean bl, String 52)
Options
- A<request> <sl>my first string</sl> <11>123</il> <32>my second string</32> <b1>false</bl>
- B<request> <sl>"my first string"</sl> <il>123</il> <sZ>"my second string"</32> <bl>false</bl>
- Csl" : "my first string", 11" : "123", "b1" : "false", "S2" : "my second string"
- Dil" : 123, "S1" : "my first string", "S2" : "my second string", "bl" : false
How the community answered
(44 responses)- A82% (36)
- B7% (3)
- C11% (5)
Community Discussion
No community discussion yet for this question.