I want to achieve a GET request response like this, I can create the object in the service layer, the question is how can I expose this in the resource yet the resource assumes its supported class structure
It’s the appointments scheduling module, while returning dairyAppointments, I would like to group them as above where each group would be containing a list of appointments