REST method with not required parameter

Hi,

I have a question. May I create REST service method with not required parameter?
Parameter metaDataClassName is not required in service.

<services xmlns="http://schemas.haulmont.com/cuba/rest-services-v2.xsd">
    <service name="app_ReportService">
        <method name="run">
            <param name="reportCode"/>
            <param name="params"/>
            <param name="metaDataClassName"/>
        </method>
    </service>
</services>

Regards
Marcin

Hi,
can you please show how your method looks in the Java interface?

Hi,

I have two methods:

Object run(String reportCode, Map params, String metaDataClassName)

Object run(String reportCode, Map params)

Then, I think, you can add both methods to the REST services XML config.