Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-28942

As a REST consumer, I want to sort a view using a Field

    XMLWordPrintable

    Details

      Description

      The objective is to add support for Public API SortClause objects input parsing for REST.

      It may have synergies with the recent implementation of Fields in Views filters (EZP-28783).

      Input format

      Support for the following should be added to `ViewInput` version 1.1:

      <ViewInput>
        <LocationQuery>
          <SortClauses>
            <Field contentTypeIdentifier="article" fieldDefinitionIdentifier="score">ascending</Field>
            <!-- alternative, friendly syntax -->
            <Field identifier="folder/comments_count">descending</Field>
          </SortClauses>
        </LocationQuery>
      </ViewInput>
      

      The JSON version will derive from that.

      Error handling

      Error handling should rely on the execution of the Query, like content/views does right now.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            bertrand.dunogier@ez.no Bertrand Dunogier
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: