image/ID/download_urls json endpoint - #67
Merged
Merged
Conversation
Member
Author
|
Deployed on idr-testing. E.g. https://idr-testing.openmicroscopy.org/image/15154257/download_urls/ |
Member
Author
|
As discussed: idr0168 and idr0170 have no |
pwalczysko
self-requested a review
June 22, 2026 10:18
|
Maybe the answer for the |
pwalczysko
approved these changes
Jun 22, 2026
Member
Author
|
OK, let's document all the GitHub and other studies where:
Failing studies
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This adds a JSON endpoint to access the same download_urls that are displayed on the image landing pages.
We use the https://raw.githubusercontent.com/IDR/idr.openmicroscopy.org/refs/heads/master/_data/download_urls.tsv table with the same logic as for the landing pages. For a given row (per study) we use the
replace_thisandwith_thiscolumns. See https://proxy-idr-ap1.dundee.ac.uk/download_urls/ where this logic is used to generate the URL for the client_path column.To test:
/image/ID/download_urls/client_pathsfrom the server, as well as thedownload_urlsderived from these by replacingreplace_thiswithwith_this.NB: This requires a config change for public url regex.
/imageis needed (similar to/apietc).