I customized RestDataSource to support our REST service that's successfully to post the correct request with right data but failed at response.
Our rest service will return a map object on JSON format for any REST request. So far, there're two problem as follows:
1.callback is never invoked after requesting a "GET" and server's response is no problem
2.DSResponse has nothing about response data. I think we need to override the method of DataSource.transformResponse but no example code anywhere
Any hint will be appreciated. TIA!
Our rest service will return a map object on JSON format for any REST request. So far, there're two problem as follows:
1.callback is never invoked after requesting a "GET" and server's response is no problem
2.DSResponse has nothing about response data. I think we need to override the method of DataSource.transformResponse but no example code anywhere
Any hint will be appreciated. TIA!
Comment