Uploaded image for project: 'Content Types'
  1. Content Types
  2. MGNLCT-106

Handle most content structures when reading external content via content type

    XMLWordPrintable

Details

    • Story
    • Resolution: Unresolved
    • Neutral
    • None
    • None
    • None
    • Yes
    • Yes
    • Phase 2

    Description

      As a developer, I want to transform incoming content or use mappings on the content coming from an external source, so that I can connect to  a wider variety of content sources with configuration alone.

      An ideal solution would work with any type of data source, but the REST use case with JSON is the most important one.

      Most REST API's format their content in different ways, with different wrapper nodes, and different heirarchies. Therefore developers need a flexible system to retrieve the content they are interested in.

      Resource: REST Response Examples

      Acceptance Criteria:

      • I can access content inside of any wrapper nodes. For example an entire response might be wrapped in a "results" node.
      • I can access the fields that I am interested in.
      • I can remap the names of the fields, ie I can use a field named "X" and expose it in Magnolia as "Y".
      • I can access multi-value fields. For example the content for a single property might contain an array of values instead of a single value.
      • I can handle multi-language content. I might need to append or prepend a string to a property name to get the correct value, or I might need to get a specific value from a map of languages.
      • I can access "linked" or "expanded" content which is provided by the remote endpoint in a separate location in the response. 
      • Ideally the same mapping configuration can be reused for reading and writing operations. (Rather than having to configure two mappings.)
      • Works with light development.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                czimmermann Christopher Zimmermann
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:

                  Checklists

                    Task DoD