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

WebHost: allow getting checksum-specific datapackage via /api/datapackage/<checksum> #3451

Merged
merged 3 commits into from
Jun 8, 2024

Conversation

Berserker66
Copy link
Member

What is this fixing or adding?

Adds /api/datapackage/ which may be useful if we want to add /api/tracker stuff and return raw data, possibly has other uses.

How was this tested?

Locally, in which I realized not all checksums from currently loaded worlds can be accessed, as only datapackages that have been generated with, or hosted with, exist. Then I came to the follow up realization, that that doesn't matter, as the only time something would request that checksum is when it's hosted in some way on that website, which means it will be in the DB.

If this makes graphical changes, please attach screenshots.

image

@github-actions github-actions bot added affects: webhost Issues/PRs that touch webhost and may need additional validation. waiting-on: peer-review Issue/PR has not been reviewed by enough people yet. labels Jun 3, 2024
Copy link
Member

@LegendaryLinux LegendaryLinux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spun this up locally, and tested that /api/datapackage and /api/datapackage_checksum worked. Then requested /api/datapackage/[lttp_checksum] and got a 404. After generating a LTTP game, the same URL, /api/datapackage/[lttp_checksum] returned proper data.

@LegendaryLinux LegendaryLinux merged commit 89d584e into main Jun 8, 2024
26 checks passed
agilbert1412 pushed a commit to agilbert1412/Archipelago that referenced this pull request Jun 13, 2024
…kage/<checksum> (ArchipelagoMW#3451)

* WebHost: allow getting checksum-specific datapackage via /api/datapackage/<checksum>

* match import style of /api/generate
jnschurig pushed a commit to Tranquilite0/Archipelago-SoulBlazer that referenced this pull request Jun 13, 2024
…kage/<checksum> (ArchipelagoMW#3451)

* WebHost: allow getting checksum-specific datapackage via /api/datapackage/<checksum>

* match import style of /api/generate
sflavelle pushed a commit to sflavelle/Archipelago-tgc that referenced this pull request Jun 20, 2024
…kage/<checksum> (ArchipelagoMW#3451)

* WebHost: allow getting checksum-specific datapackage via /api/datapackage/<checksum>

* match import style of /api/generate
qwint pushed a commit to qwint/Archipelago that referenced this pull request Jun 24, 2024
…kage/<checksum> (ArchipelagoMW#3451)

* WebHost: allow getting checksum-specific datapackage via /api/datapackage/<checksum>

* match import style of /api/generate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects: webhost Issues/PRs that touch webhost and may need additional validation. waiting-on: peer-review Issue/PR has not been reviewed by enough people yet.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants