foojayio / discoapi

The foojay discovery api (discoapi) is made to discover java packages (jre/jdk) from different distributions.
GNU General Public License v2.0
112 stars 13 forks source link

How to correctly select Java 21 Distributions? #86

Closed marchof closed 1 year ago

marchof commented 1 year ago

While updating https://javaalmanac.io for the Java 21 I encountered the following issue. If I search with the following query:

https://api.foojay.io/disco/v3.0/packages?version=21&package_type=jdk&latest=available

I get mostly Graal implementations (which is currently 21.x.y). So I tried the parameter java_version instead, as the README.md suggests:

https://api.foojay.io/disco/v3.0/packages?java_version=21&package_type=jdk&latest=available

Unfortunetelly this leads to an 504 Gateway Time-out.

My questions are:

marchof commented 1 year ago

I re-discovered the swagger-ui. Some more insights:

geertjanw commented 1 year ago

I’m sure Gerrit will investigate and report back here soon.

HanSolo commented 1 year ago

Will take a look at it as soon as I’ll have some time, thx for the report 👍🏻

marchof commented 1 year ago

Looks like jdk_version is now magically working the the 503 responses are gone:

https://api.foojay.io/disco/v3.0/packages?jdk_version=21&package_type=jdk&latest=available

@HanSolo Can you confirm this is the correct way to go?