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

[REST] As a frontend developer I would like to get information about field type in the CurrentVersion object

    XMLWordPrintable

    Details

    • Sprint:
      Sprint 6
    • Story Points:
      1

      Description

      As a frontend developer I would like to get information about field type in the CurrentVersion object.
      Now, I get only:

      • fieldDefinitionIdentifier,
      • fieldValue,
      • id,
      • languageCode.

      I'm missing the fieldTypeIdentifier, because basing on the fieldDefinitionIdentifier is non-deterministic and might lead to errors in the frontend. For instance, I'm looking for an ezimage field and the image field can be of ezstring type or an ezimage field type. Both are named with the same identifier. Detecting ezimage field might be difficult.

      Sample endpoints:

      search query
      POST http://ezplatform.prod/api/ezp/v2/views
      
      {
        "ViewInput": 
        {
          "identifier":"subitems-load-content-info-98,100,101,102,103,104,105,106,107,108",
          "public":false,
          "ContentQuery":
          {
            "Criteria":{},
            "FacetBuilders":{},
            "SortClauses":{},
            "Filter": { "ContentIdCriterion":"98,100,101,102,103,104,105,106,107,108" },
            "limit":10,
            "offset":0
          }
        }
      }
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              piotr.nalepa-obsolete@ez.no Piotr Nalepa (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: