Uploaded image for project: 'Magnolia REST Client UI'
  1. Magnolia REST Client UI
  2. MGNLRESTUI-8

multiField support for REST datasource

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Fixed
    • Icon: Major Major
    • 1.0
    • None
    • None
    • Yes
    • Declarative REST 13, Declarative REST 14
    • 2

      Timebox for research on OrderHandler: 2 SP

      User Story:

      As a developer, I want to integrate datasource which contain arrays and nested data structures that I want to show in detail subapps, so that I can work with most REST datasources.

      There appears to be a limitation in the current rest datasource.

      I was not able to display the content from this endpoint in a detail view.
      http://transport.opendata.ch/v1/stationboard?station=basel

      One of the things that appears to be missing to use a multiField is an appropiate orderHandler for json data.

      For jcr there is:

      orderHandler:
        $type: jcrChildNodeOrderHandler

      But I could not supply an appropriate "orderHandler" as there is not one for the jsonDatasource.

      Also for jcr there is:

      itemProvider:
        $type: delegateToSubNodeProvider
      

       Not sure if there is something for json.

       

      To reproduce:

      Notes

      See: https://git.magnolia-cms.com/users/czimmermann/repos/restclient-testing/browse/light-modules/rc-transportation-demo/apps/stations.yaml

      In particular look at line #55 for the jsonPath.

      Look at line #69 and after for the form configuration. Look for (MULTIFIELD)

      More Notes

       Trying to do what is demod in M6UI in contacts app:

      contactsV8 app. (Line 283) https://git.magnolia-cms.com/projects/MODULES/repos/contacts-app/browse/src/main/resources/contacts/apps/contacts-v8.yaml

        Acceptance criteria

              thien.quach Quach Hao Thien
              czimmermann Christopher Zimmermann
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0d
                  0d
                  Logged:
                  Time Spent - 7d 5h
                  7d 5h