detail=allcompletestubs parameter doesn't return all related artefact's annotations - SDMXRI-1947 - NSI 8.13.0
When querying for a dataflow with its related artefacts using the parameters references=children
& detail=allcompletestubs
, the details such as annotations of any related artefact, e.g. annotations of the DSD definition, are not present in the response but should. Currently, only annotations of the queried artefact are returned.
Example:
When querying a DSD and its related structures, with the detail=allcompletestubs
parameter, you correctly get the annotations of the DSD, e.g. allowing to get the MSD reference:
However, When querying a dataflow and its related structures, the following request is made in order to get the DSD: https://nsi-demo-stable.siscc.org/rest/dataflow/OECD.ECO/PO_REFMETADATA2005/1.0?references=children&detail=allcompletestubs, then the annotations of the DSD are not present:
Annotations of the DSD in this last example are necessary in the .Stat Suite context when in the DLM we request to display a dataflow and its related artefacts and we use the (optional) METADATA
of the related DSD in order to display the related MSD.
SDMX reference
https://github.com/sdmx-twg/sdmx-rest/blob/master/doc/structures.md: detail=allcompletestubs: all returned artefacts should be returned as complete stubs, i.e. only containing identification information, the artefacts' name, description and annotations.
Related ticket at ESTAT: SDMXRI-1947