Support labels=both option in CSV downloads in unauthenticated mode
Enable the labels=both
option for CSV downloads also in unauthenticated mode through using a new NSI URL option format=csvfilewithlabels
, which translates to the HTTP Accept header value "application/vnd.sdmx.data+csv;file=true;labels=both"
Example
- go to https://de-demo.siscc.org/vis?fs[0]=datasourceId%2Cds%3Astaging%3ASIS-CC-stable&pg=0&fc=datasourceId&bp=true&snb=27&vw=tb&df[ds]=ds%3Astaging%3ASIS-CC-stable&df[id]=DF_A3100&df[ag]=LU1&df[vs]=1.0&pd=2019%2C&dq=..A&ly[cl]=CAPACITY&ly[rw]=SPECIFICATION&to[TIME_PERIOD]=false
- be logged off
- select 'Labels=both'
- click on 'Download filtered data in CSV)
It currently results in downloading the CSV file wrongly containing only IDs.
-
PM to update the documentation for: 'if a dataspace doesn't supports format=csvfile
andformat=csvfilewithlabels
parameters you can add"supportsCsvFile": false
in the dataspace config intenants.json
, and then the application will go back to internal queries as in authenticated mode. Support of this feature will be assumed by default.'
Edited by jean-baptiste nonin