Hi, i'm going to integrate with an existing rest service. It returns an object not totally different from DSResponse but not as advanced:
So, i tried to read up on transformresponse and found the DataSource.transformresponse, but was unable to find something definitve. I am looking for a central override point where i can put code to move over these relevant rows into the DSResponse returned, either on the server side or client side (preferred)
But since you get a DataSource in the client via DataSource.get(), i'm not sure how i could override those objects transformresponse?
I'm sure this is doable, just hoping for pointers on where you suggest i put the code.
Thanks in advance
Code:
public class ApiDataResponse<T> extends ApiResponse { Integer startRow; Integer endRow; Integer totalRows; List<T> data; ... //various additional code
But since you get a DataSource in the client via DataSource.get(), i'm not sure how i could override those objects transformresponse?
I'm sure this is doable, just hoping for pointers on where you suggest i put the code.
Thanks in advance
Comment