[MGNLREST-98] Wrap query results into a result object Created: 21/Aug/17  Updated: 06/Nov/17  Resolved: 30/Oct/17

Status: Closed
Project: Magnolia REST Framework
Component/s: None
Affects Version/s: None
Fix Version/s: 2.0

Type: Task Priority: Neutral
Reporter: Sang Ngo Huu Assignee: Dai Ha
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: 5h
Time Spent: 3h
Original Estimate: 1d

Issue Links:
Cloners
is cloned by MGNLREST-99 Research possibility to move the Prov... Open
Relates
relates to MGNLREST-96 CLONE - Implement basic "listing" end... Closed
Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Date of First Response:
Epic Link: REST Queries
Sprint: Saigon 118, Saigon 119
Story Points: 5

 Description   

Follow up MGNLREST-96:
Need to have a metadata for results in listing endpoint. Eg:

public class RestResults<T extend Iterator> {
    private final T results;
    private final String link;
    private final Integer offset;
    private final Integer limit;
    private final Integer total;
}


 Comments   
Comment by Mikaël Geljić [ 12/Oct/17 ]

First goal: get the format more or less right, even if metadata is not populated yet. e.g.

{
  results: [],
  total: 0
}
Generated at Mon Feb 12 06:56:34 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.