This is the WSO2 Data Services Server documentation version 2.6.3

Default Values Sample

The operation "addEmployee" uses the facility to give default values to certain fields, if they were chosen not to be given an explicit value. Here, the parameter "salary" is given the default value 1500. This can be checked by calling the "addEmployee" operation with parameters except the "salary" value. For example, if the parameter values are employeeNumber=6002; lastName=Smith; firstName=John; email=john@smith.com, a call to the operation "employeesByNumber" with employeeNumber=6002 will result in the following:

Note that with the given parameters, the "salary" value is also set to 1500. This is the default value for that field when the parameter value is not given.