quarkus: REST client guide needs to be updated because restcountries.eu is no longer supported

Describe the bug

The test API restcountries.eu in REST client guide is being discontinued - https://github.com/apilayer/restcountries/pull/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 or ver

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 or gradlew --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

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 18 (17 by maintainers)

Most upvoted comments

@ia3andy I can take a look after this one, sure.

Feel free to add it: https://github.com/quarkusio/code.quarkus.io/blob/main/api/src/main/kotlin/io/quarkus/code/rest/CodeQuarkusResource.kt#L151

I would use the id instead /api/extensions?id=io.quarkus:quarkus-resteasy and as a query parameter. You would also need to add it to the /api/extensions/streams/{streamKey}.

If you do make sure we prepare a Map by id at init to avoid any unnecessary computation on queries…

I think we should rather switch to a different endpoint in both the quickstart and the guide. Wiremocking countries makes the tests pass but the app will still fail.

On an issue about Rest Client codestart @ia3andy wrote that for codestart we could use https://code.quarkus.io/api/extensions Maybe we could use it for the quickstart too?