REST Service Method with entity as parameter

Hello, I’m trying to invoke a REST method while passing an entity but I get the message: "
image

The service is registered in the xml as:
image

and my method is defined as:
image

I’m wondering what I’m doing wrong.
Thanks.

Hi,

The “type” attribute of the <param> in rest-services.xml should be a fully qualified class name (with package). So you should either add a package name to the Organization value (e.g. com.company.entity.Organization) or remove the “type” attribute at all, because it is optional and is required only if there are multiple create() methods in your service.

1 Like

Thanks. It worked.