Menas API: replace arrays with objects as top-level JSON reponses #1616
Labels
feature
New feature
priority: undecided
Undecided priority to be assigned after discussion
under discussion
Requires consideration before a decision is made whether/how to implement
Background
As outlined in #1597 (comment), Menas API contains top-level arrays in response payloads in a number of endpoints. For reasons outline in the lined discussion, these should be replaced by wrapper objects.
API calls in question:
/api/properties/datasets
/api/runs/{summaries, {datasetName}, grouped, /grouped/{datasetName}, /{datasetName}/{datasetVersion}}
<? extends VersionedModelController>/{list, searchSuggestions, /allVersions/{name}}
Feature
There should be an (extensible) object as a response in JSON.
Example
GET /api/properties/datasets
now yields:The intended response should be e.g.:
The text was updated successfully, but these errors were encountered: