Return type for rest APIs are usually json representations of java objects. There is always a return type for a rest API.
For example /getCustomer will return a customer record, which is defined in CustomerDTO class ( in json format ). I would love it if we could indicate that and report on it.
Sorry for the late reply.
You can model response class with association that connect to another class.
The another class will also be generated.