Actually, a @RestApiObject can only be defined on a domain class.
But it would be great if we could use this annotation with any pojo, by specifying a package-to-scan in the config.
For instance, in my application my webservices must return pojos stored in a package of the src/groovy folder.
Hi,
Actually, a @RestApiObject can only be defined on a domain class. But it would be great if we could use this annotation with any pojo, by specifying a package-to-scan in the config. For instance, in my application my webservices must return pojos stored in a package of the src/groovy folder.