Except for Kodika Server, you can also connect to any JSON REST API server. JSON is strict about the data types that can support, so we allow only a subset of the Suggested data types to be used in API requests and API responses. You can also create Models to support more complicated data types, which Kodika will automatically convert to JSON objects and arrays.
Text (or string) is the data type that describes a combination of characters.
Int includes all numbers with are not decimal, meaning all integers. Int is a subset of number data type.
-3 are valid values for Int data type, but
3.13 is not. Suppose you try to assign a non-integer. In that case, Kodika will convert it to an integer by deleting everything after the decimal separator and not by rounding the number. For example, both
3.89 will be converted to
Number data type includes all decimal and integers, which means all valid numbers.
-4.99 are valid values for the Number data type.
The Bool (or boolean) data type can have only two values:
False(NO). The True/False Bool data type is used to check whether a condition is met or not.
True/False Bool data types can be used in IF Code Blocks.
The Image data type represents an Image.
When Image is used as an API Request parameter, the request will be automatically converted to a multipart form, and
img/png mime-type will be assigned to this parameter.
When Image is used as an API Response parameter, it will be automatically converted from data to Image.
Note: You should not confuse this data type with the Image Asset or the Server Image. You can get the image from an Image Asset or a Server Image but are not the same data type. Check out also Image Asset vs Server Image vs Image.