Skip to content

image/ID/download_urls json endpoint - #67

Merged
pwalczysko merged 2 commits into
IDR:masterfrom
will-moore:download_urls_json
Jun 22, 2026
Merged

image/ID/download_urls json endpoint#67
pwalczysko merged 2 commits into
IDR:masterfrom
will-moore:download_urls_json

Conversation

@will-moore

@will-moore will-moore commented Jun 15, 2026

Copy link
Copy Markdown
Member

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_this and with_this columns. 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:

  • for an image in IDR, go to /image/ID/download_urls/
  • JSON response includes client_paths from the server, as well as the download_urls derived from these by replacing replace_this with with_this.

NB: This requires a config change for public url regex. /image is needed (similar to /api etc).

@will-moore

Copy link
Copy Markdown
Member Author

@will-moore

Copy link
Copy Markdown
Member Author

As discussed: idr0168 and idr0170 have no replace_this and with_this columns in the download_urls.tsv. Since these do have client paths, let's see if we can find something useful here...

@pwalczysko
pwalczysko self-requested a review June 22, 2026 10:18
@pwalczysko

pwalczysko commented Jun 22, 2026

Copy link
Copy Markdown

Edit 2:

Actually, some GitHub links work as expected. The data are never on GitHub
But one must click onto the before replacement column to get to the ftp.

https://github.com/IDR/idr0106-kubota-lunglightsheet/blob/main/experimentA/companions/Mosaic%20Image_Z%5B00001%5D_L%5B1%5D.ome.tiff

Screenshot 2026-06-22 at 13 19 00

@pwalczysko

Copy link
Copy Markdown

Maybe the answer for the Github lines is: Go to EBI when the EBI link is present, otherwise stick to the ftp before replacement with_this ?

@will-moore

will-moore commented Jun 22, 2026

Copy link
Copy Markdown
Member Author

OK, let's document all the GitHub and other studies where:

  • this new /image/ID/download_urls/ doesn't work
  • Of these which are "zarr" images (we care less about these as the iviewer works - no placeholder page)

Failing studies

@pwalczysko
pwalczysko merged commit 322de70 into IDR:master Jun 22, 2026
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants