Uploaded image for project: 'Magnolia REST Framework'
  1. Magnolia REST Framework
  2. MGNLREST-98

Wrap query results into a result object

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Neutral
    • 2.0
    • None
    • None
    • None
    • Saigon 118, Saigon 119
    • 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;
      }
      

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                dai.ha Dai Ha
                sang.ngo Sang Ngo Huu
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoR

                    Time Tracking

                      Estimated:
                      Original Estimate - 1d
                      1d
                      Remaining:
                      Time Spent - 3h Remaining Estimate - 5h
                      5h
                      Logged:
                      Time Spent - 3h Remaining Estimate - 5h
                      3h