New answers tagged apexrest
2
votes
To have different data type for same variable in Rest API Request body
You would have to have two different wrappers, and choose the appropriate one. Apex is a strongly typed language, so the same symbol can't be used as two different types. Alternatively, as Phil says, ...
Top 50 recent answers are included
Related Tags
apexrest × 589apex × 311
rest-api × 217
rest × 84
json × 56
callout × 54
integration × 45
unit-test × 33
api × 30
rest-service × 30
restresource × 30
webservices × 27
oauth2 × 25
connected-apps × 16
visualforce × 15
community × 14
authentication × 13
post × 12
trigger × 11
force.com-sites × 10
apex-webservice × 9
httppost × 9
code-coverage × 8
lightning × 7
soap-api × 7