dbnomics-api issueshttps://git.nomics.world/dbnomics/dbnomics-api/-/issues2023-06-30T14:53:25Zhttps://git.nomics.world/dbnomics/dbnomics-api/-/issues/5Accept series code masks in "/series?series_ids" endpoint2023-06-30T14:53:25ZChristophe Benzchristophe.benz@nomics.worldAccept series code masks in "/series?series_ids" endpoint## Context
In https://git.nomics.world/dbnomics-fetchers/ine-spain-fetcher/-/commit/b53bf463082a71b84f3de822444548929fffd280 we changed the series codes from generated ones based on dimension codes (e.g.72.b101.311118.n.s1.00.euros), to...## Context
In https://git.nomics.world/dbnomics-fetchers/ine-spain-fetcher/-/commit/b53bf463082a71b84f3de822444548929fffd280 we changed the series codes from generated ones based on dimension codes (e.g.72.b101.311118.n.s1.00.euros), to INE-SPAIN provided ones (e.g. CTNFSI6514).
This is because we spotted a bug: some generated dimension codes corresponded to many series, which is not acceptable since a series code must be unique.
Using INE-SPAIN provided series codes solved that issue.
However using the generated series codes should still work. Indeed, the web page at URL https://db.nomics.world/INE-SPAIN/30906/72.b101.311118.n.s1.00.euros opens correctly the series CTNFSI6514, and the URL https://db.nomics.world/INE-SPAIN/30906/CTNFSI6514 works too.
In the same vein, the API URL https://api.db.nomics.world/v22/series/INE-SPAIN/30906/72.b101.311118.n.s1.00.euros is equivalent to the URL https://api.db.nomics.world/v22/series/INE-SPAIN/30906/CTNFSI6514
Bug: the API URL "/series?series_ids=" does not accept both forms:
https://api.db.nomics.world/v22/series?series_ids=INE-SPAIN%2F30906%2F72.b101.311118.n.s1.00.euros does not return anything, but https://api.db.nomics.world/v22/series?series_ids=INE-SPAIN%2F30906%2FCTNFSI6514 does.