Skip to content
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

API URL not updated anymore #4824

Closed
DutchFlander opened this issue Nov 30, 2020 · 7 comments
Closed

API URL not updated anymore #4824

DutchFlander opened this issue Nov 30, 2020 · 7 comments

Comments

@DutchFlander
Copy link

What behaviour is expected:

Latest paper.jar download

What behaviour is observed:

Latest build is stuck on: paper-1.16.4-294.jar

Steps/models to reproduce:

Use the URL: https://papermc.io/api/v1/paper/1.16.4/latest/download
It will download paper-1.16.4-294.jar.

Plugin list:

N/A

Paper version:

N/A

Anything else:

It is stopped working since version paper-1.16.4-294.jar.
Current fresh release is paper-1.16.4-298.jar

@DutchFlander
Copy link
Author

Original issue:
#3786 (comment)

@Machine-Maker
Copy link
Member

Machine-Maker commented Nov 30, 2020

Idk if this is intentional, but v2 of the api is out. v1 is probably considered deprecated. https://papermc.io/api

@DutchFlander
Copy link
Author

Idk if this is intentional, but v2 of the api is out. v1 is probably considered deprecated. https://papermc.io/api

Is there a way to download the latest build with API V2?
https://papermc.io/api/v2/projects/paper/versions/1.16.4
This gives back all the available builds, but how can I select only the latest?
Like with: https://papermc.io/api/v1/paper/1.16.4/latest/download

@Machine-Maker
Copy link
Member

Not with only 1 http request. You can get the list of builds, and then get the last build number and download that build.

@DutchFlander
Copy link
Author

DutchFlander commented Nov 30, 2020

That will make more work to be done. Currently my MC server is creating a backup every day and restarting the server, but before downloading the latest version to be up-to-date (with https://papermc.io/api/v1/paper/1.16.4/latest/download).
So you're saying I have to write a script which reads out the latest build number from the V2 response and download only that, there won't be any "latest" link in the future?

reference:
https://paper.readthedocs.io/en/latest/site/api.html#i-just-want-to-download-the-latest-jar

@Machine-Maker
Copy link
Member

If you'd like to have latest as an option, you can open an issue on https://github.com/PaperMC/library.

Yeah, the docs site is currently outdated since v2 was released just a few days ago.

@DutchFlander
Copy link
Author

Ok, thanks for the help ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants