Project

General

Profile

Actions

Question #1517

closed

decide on/implement content negotiation for image API

Added by Christoph Hoffmann almost 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Category:
API
Target version:
-
Start date:
2021-05-17
Estimated time:

Description

the image retrieval API implemented in #1280 should conform to server driven content negotiation conventions

the standard currently only covers format negotiation, all other features (size, resolution, width) are still experimental

  • format negotiation should go, as described in the Accept Header (but could then also be replaced/overridden by a query parameter for ease of use)
  • size negotiation should (as I understand is already implemented) remain in the path parameter, fixed to the preconfigured named sizes

What would this implementation enable?

  • the user/client would, simply by passing a mime type as a parameter/header, be able to retrieve the originally uploaded resource or a client conforming format
  • in scenarios where the client would not pass an explicit format request, the browser would still add standard accept headers we can work with

Related issues 2 (0 open2 closed)

Related to OpenAtlas - Feature #1426: API: Display image smaller sizeClosedBernhard Koschiček-Krombholz2021-04-02Actions
Related to OpenAtlas - Feature #1492: Image Processing ClosedBernhard Koschiček-Krombholz2021-04-01Actions
Actions

Also available in: Atom PDF