Overloading Service Functions

Hello,


is there a way to overload service functions: 

function command(const rm,day,month,year: string;dv:integer): TJSONObject; Overload;
function command(const rm,date: string;dv:integer): TJSONObject; Overload;  

or is it a better to define a new version of the service function?

best regards

You can have overloaded methods in the interface itself, but each method must have a specific endpoint, differentiated by the URIPath segment. For example:




    function Sum(A, B: double): double; overload;
    [URIPath('Sum3')] function Sum(A, B, C: double): double; overload;


The first method will be accessible through the URL /sum and the second through the URL /sum3