Simplify definition retrieval endpoints and add latest version to it

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Fixed
    • Priority: L3 - Default
    • 2.6.0-alpha1, 2.6.0
    • Affects Version/s: None
    • Component/s: backend
    • None

      AT:

      • change the GET /api/*-definition/definitionVersionsWithTenants endpoints so that it returns the definitions in a structure depicted here:
        [
          {
            "key": "abc",
            "name": "ABC",
            "versions": [
              {
                "version": "ALL",
                "versionTag": null
              },
              {
                "version": "LATEST",
                "versionTag": null
              },
              {
                "version": "3",
                "versionTag": "Tag"
              },
              {
                "version": "2",
                "versionTag": "Another Tag"
              },
              {
                "version": "1",
                "versionTag": "Tag"
              },
              ...
            ],
            "tenants": [
              {
                "id": null,
                "name": "Not defined"
              },
              {
                "id": "tenant1",
                "name": "Tenant 1"
              },
              {
                "id": "tenant2",
                "name": "Tenant 2"
              },
              ...
            ]
          },
          ...
        ]
        
      • the latest version is added to the list
      • the rest-api documentation is adjusted accordingly

        This is the controller panel for Smart Panels app

              Assignee:
              Unassigned
              Reporter:
              Johannes
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: