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

Location path sort clause not implemented in REST Views

    XMLWordPrintable

Details

    Description

      The Location path sort clause seems to not be usable in the REST Views. When using it, the REST is a 400 Bad Request

      Steps to reproduce:

      Execute the following REST request (with a correct Session Id and CSRF Token):

      curl 'http://ez.loc/api/ezp/v2/views' -H 'X-CSRF-Token: C7JKgcz4V2eyOXMcbjyRk4WB78JI6e0WvOQeVhFfPMQ' \
          -H 'Cookie: privacyCookieAccepted=1; eZSESSID98defd6ee70dfb1dea416cecdf391f58=fdvvnhp2egfhlacc7pmebghos6' \
          -H 'Content-Type: application/vnd.ez.api.ViewInput+json; version=1.1' \
          -H 'Accept: application/vnd.ez.api.View+json; version=1.1' \
          --data-binary '{"ViewInput":{"identifier":"subitems-2","public":false,"LocationQuery":{"Criteria":{"ParentLocationIdCriterion":2},"FacetBuilders":{},"SortClauses":{"LocationPath":"ascending"},"offset":0,"limit":10}}}'
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            damien.pobel-obsolete@ez.no Damien Pobel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: