Project

General

Profile

Actions

Feature #1933

closed

API: Display images without extension in URL

Added by Bernhard Koschiček-Krombholz about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Category:
API
Target version:
Start date:
2023-01-16
Estimated time:

Description

Display images endpoint need the ID of the file and the extension of the image file. It would be easier to handle the endpoint for clients if they don't need to know the file extension.

Objective
Old:

../api/display/12345.jpg

New:
../api/display/12345


Related issues 1 (1 open0 closed)

Related to OpenAtlas Discovery - Feature #1931: Display imagesAcknowledged2024-02-27Actions
Actions #1

Updated by Alexander Watzinger about 1 year ago

I'm not sure how the client would be able to find out the extensions themselves. In the backend we do it with basically searching in the folder, which the client has no access to.

Actions #2

Updated by Bernhard Koschiček-Krombholz about 1 year ago

That is the point. The client has to use the link provided by the API. But if the client has only the image ID, it can not get the file. Therefore, the display_image function has to adopted that it can process IDs without file extension.

Actions #3

Updated by Alexander Watzinger about 1 year ago

But how does this work than with existing frontends work, e.g. Shahi? Anyway, I linked the image issue of the new OpenAtlas Discovery so we can figure this out together with the frontend team.

Actions #4

Updated by Alexander Watzinger about 1 year ago

Actions #5

Updated by Bernhard Koschiček-Krombholz about 1 year ago

  • Status changed from Acknowledged to Closed
  • Assignee set to Bernhard Koschiček-Krombholz
  • Target version changed from Wishlist to 7.10.0

Currently, OpenAtlas Discovery retrieves the entity as Linked Places JSON. There is a key, depiction, with the link to the file entity and to the display URL (ID + extension) if the file has a license.

But some projects, e.g. THANADOS, just has the ID for the image and not the extension. So it was asked if it can be changed.

Actions

Also available in: Atom PDF