Project

General

Profile

Feature #1933

API: Display images without extension in URL

Added by Bernhard Koschiček-Krombholz 20 days ago. Updated 20 days 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

Related to OpenAtlas Discovery - Feature #1931: display imagesAcknowledged2023-01-13Actions

History

#1

Updated by Alexander Watzinger 20 days 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.

#2

Updated by Bernhard Koschiček-Krombholz 20 days 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.

#3

Updated by Alexander Watzinger 20 days 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.

#4

Updated by Alexander Watzinger 20 days ago

#5

Updated by Bernhard Koschiček-Krombholz 20 days 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.

Also available in: Atom PDF