khaeru / sdmx

SDMX information model and client in Python
https://sdmx1.readthedocs.io
Apache License 2.0
24 stars 18 forks source link

ILO url changed #177

Closed SebaJeku closed 5 months ago

SebaJeku commented 5 months ago

The ILO url seems to have changed from http://www.ilo.org/sdmx/rest to https://sdmx.ilo.org/rest/

khaeru commented 5 months ago

Ah, thank you!

I had noticed sporadic (meaning, sometimes passed after having failed) failures of tests against the prior URL, and searched their website (in vain) for any announcement of a change. In #175 I was about to reluctantly mark all the ILO tests as XFAIL. I will instead try the new URL you suggest.

Can you please say where you found out about the new URL?

SebaJeku commented 5 months ago

There's an URL generator service at https://ilostat.ilo.org/resources/sdmx-tools/ I found no official announcement by ILO as well. I filed a request to ILO for confirmation and will cite the answer here as soon as I received one.

khaeru commented 5 months ago

Thanks for doing that. In the 2.15 release I put out yesterday, I added a note to the same effect. Let's see what they say.

SebaJeku commented 5 months ago

From: SDMX Support sdmx.support@ilo.org

Dear colleagues,

Due to a restructure of the www.ilo.org domain routing, some redirections of the main domain URLs may be affecting the ILOSTAT SDMX dissemination web service, making your queries fail.

Please change the base URL of the SDMX API to https://sdmx.ilo.org/rest instead of www.ilo.org/sdmx/rest.

Our sincere apologies for the inconvenience.

Do not hesitate to contact us in case you have any issues after the change. Your feedback will also be much appreciated.

All the best, Department of Statistics (STATISTICS)

encl. ILOSTAT-SDMX_Dissem API Ref Guide_V4.1-(ILO Style).pdf

khaeru commented 5 months ago

Excellent, thanks for corresponding with ILO and sharing their response. Users who follow the link from the docs should be able to see it here.

wc-lei commented 3 weeks ago

I know this is a closed issue, but just want to say Hi to all of you.

I am the owner and developer of the ILO's SDMX API. Sorry again for the inevitable change we had to make on the URL. It was part of the organizational move, but hopefully it only happens once in your lifetime. :-D

Again, any comments and questions about the API is much appreciated.

wc-lei commented 3 weeks ago

Oh, one more thing, instead of the "URL generator" @SebaJeku mentioned, there is a better place to go: https://data.ilo.org/. From here, you can search or navigate to the dataflow you are interested in, and even customize your query and visualize it. Then you click on this Developer API from the top right menu, and you get the exact SDMX structure and data queries.

khaeru commented 2 weeks ago

@wc-lei thanks for your comments, and no need to apologize. I think it is totally normal that API base URLs and other operational details change over time.

IMHO the SDMX global registry should capture and be a reliable source for this information, including advance notification of moves. Then we could simply query it: “What is the base URL for provider ‘ILO’ web service?” and it would respond "Until xx date, this URL; after that date, this other URL.”

But until they provide that, just a clear notice at the top of the documentation page is fine, we can see it and adapt accordingly.