-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
REST client guide needs to be updated because restcountries.eu is no longer supported #20810
Comments
I will gladly fix this but I need to know which road to take. |
Great! We should do what @Sgitario did in the quickstarts: https://github.com/quarkusio/quarkus-quickstarts/blob/main/rest-client-quickstart/src/test/java/org/acme/rest/client/resources/WireMockCountriesResource.java |
I think we should rather switch to a different endpoint in both the quickstart and the guide. On an issue about Rest Client codestart @ia3andy wrote that for codestart we could use https://code.quarkus.io/api/extensions |
@michalszynkiewicz I think there is different issue open for codestart. @geoand as Michal mentioned wiremock will only solve tests but the app is still referenced in dev mode to contact that endpoint. So I still need to know if we will require subscriptions (meesa don't like) or we will switch to restcountries.com. But I also noticed that the example wiremock server in the guide is wrong. Should I fix that in this issue or open a new one? |
No need for a new issue, just include a fix in a separate commit when you open a PR |
@geoand so just to confirm, switching to restcountries.com ? |
If that works, sure 😎. I haven't looked into it at all |
@xstefank it could make sense to use code.quarkus.io/api/extensions as it's one of our own service |
how does restcountries.com work? it times out for me now, is it only me? |
same here |
Also times out for me |
yep, same here. So it seems that is not so well adjusted for the load that is expected. Thanks, @ia3andy that's a great idea. Do you guys think maybe we can add an endpoint that will return individual extension JSON from the endpoint Andy recommended? so we have something similar as with restcountries. E.g. |
Feel free to add it: I would use the If you do make sure we prepare a |
also @xstefank maybe it's wiser to use |
I don't think we need to expect many people will be doing the guide at the same time so the load should be minimal. OK, let's use |
@ia3andy I can take a look after this one, sure. |
Describe the bug
The test API restcountries.eu in REST client guide is being discontinued - apilayer/restcountries#280. It already doesn't work and thus REST client guide needs to be updated.
Expected behavior
Guides should work?! :)
Actual behavior
https://restcountries.eu is not responding.
How to Reproduce?
Follow the instructions in the guide.
Output of
uname -a
orver
No response
Output of
java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
There are two possible ways I've found so far:
1/ the replacement https://countrylayer.com/ but it requires registration for API key
2/ backup https://restcountries.com/ which is open-sourced and seems to be maintained https://gitlab.com/amatos/rest-countries
The text was updated successfully, but these errors were encountered: