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

Use Location parameter for path parameters

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Medium
    • None
    • 1.0
    • None

    Description

      The info.magnolia.graalvm.rest.ui.JsonAppDatasourceDefinition does not have a way to account for path parameters, i.e. 
      path: '{index}/_mapping'
      I propose adding a property in an ordered list to take in the location parameter and apply them to the corresponding path parameter.

      Example:

      locationParameterMappings:

        - index

      Corresponds to Location: 'app:elasticsearch:browser;stories::'

      where the path parameter /{index}/_mapping translates to /stories/_mapping. I have forked the rest-client-ui project and will create a branch with this ticket number with my proposed changes.

      https://git.magnolia-cms.com/users/srhodes/repos/rest-client-ui/browse

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              srhodes Scot Rhodes
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Checklists

                  Task DoD