Context:
See parent task.
AT:
- there is a new endpoint on the definition resource that returns all available tenants given a definitionType, -key and a list of versions
- tenants are sorted ascending by their name, the "not defined" tenant (id: null) is always first if available
- the endpoint is documented in confluence
API-Suggestions:
POST /api/definition/:type:/:key:/_resolveTenantsForVersions
Request-Body:
{
"versions": ["1" , "2"], // Optional, array of versions to query available tenants for, supports special entries "all" and "latest", defaults to ["all"]
"filterByCollectionScope": "someCollectionId" // Optional. Only return tenants that are available in the scope of the given collection
}
Response:
[
{
"id": null,
"name": "Not defined"
},
{
"id": "tenant1",
"name": "Tenant 1"
},
...
]
This is the controller panel for Smart Panels app
- is depended on by
-
OPT-3803 Migrate definition selection from definitionVersionsWithTenants to new endpoints
-
- Done
-