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

UserMetadata criterion handling in REST Views

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: High High
    • None
    • 1.3.0
    • Platform > REST API v2
    • None

    Description

      There's currently no way to filter content in REST View by content owner ID. Solution is to add new criterion to make it possible. We need to implement UserMetadata criterion handling in REST Views.

      Example of use (JSON):

      {
        "ViewInput": {
          "identifier": "FilterArticleByOwnerIdExample",
          "Query": {
            "Criteria": {
              "ContentTypeIdentifierCriterion": "article",
              "UserMetadataCriterion": {
                  "Target": "owner",
                  "Value": 14
              }
            },
            "limit": "10",
            "offset": "0"
          }
        }
      }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            slawomir.uchto@ibexa.co Sławomir Dołżycki-Uchto
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours
                3h