Change By: Schuller Tom (24/Apr/13 11:01 AM)
Description: Current pipe implementation does just support to read data:
bq. {code}
 void read(Callback<List<T>> callback);
bq.  void readWithFilter(ReadFilter filter, Callback<List<T>> callback);
{code}

It would be helpful to add a "read" by a given ID (maybe RecordID). Something like this:
bq. {code}  void readByID(Integer id, Callback<T> callback);  {code}

The idea is the following:
bq. {code}
 route().from("/cars/{id}").on(RequestMethod.GET).produces(CUSTOM_ALL_DETAILS).to(Cars.class).findById(param("id"));
bq.  route().from("/cars").on(RequestMethod.POST).produces(CUSTOM_MIN_DETAILS).to(Cars.class).getAll();
{code}

Having these routes, the "getAll" route returns only a minimum of details (model,...)
The "findByID" is returning all the details of the car including some related informations.

Returning full details for the getAll method would be overkill as the data is not needed to display it in a list and would consume to mcuh resources.
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira