Quantcast
Channel: OutSystems Community
Viewing all articles
Browse latest Browse all 1476385

[Forums] REST API - Send Default Value, Is Mandatory - unsolved problem

$
0
0

Hi there!

# I am confused to understand the properties of REST API "Send Default Values" as a producer and as a consumer; and "Is Mandatory" as a consumer.

# What does it mean by "Send the input parameter value in the response payload if it is holding its default value" both as a producer and as a consumer?

# I ever experienced that a response (json type)..see https://www.outsystems.com/forums/discussion/21386/rest-api-response-with-value-0-is-not-returned/  , with a default value is not sent back by the producer to the consumer, but when i try with primitive type, the default value is sent back.  Is it a matter of json to outsystem data type translation or else? does it happen in get or post method?

# As a consumer, I found: this combination Is Mandatory - Yes - and Send Default Values -NO- that is i think it different with the document: https://success.outsystems.com/Documentation/10/Reference/Extensibility_and_Integration/REST_APIs/Consumed_REST_API/Input_Parameter_(REST_API_Callback)

# And what is amazing is that when i change the IsMandatory to No and then return its value back  to Yes, the Send Default Value now change to Yes (and disable)... I use service studio 10.0.902.0. Is it a matter of old service studio or else? 

regards and thank you in advance, 



Viewing all articles
Browse latest Browse all 1476385

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>