Request
To get the fallback image for a content type, or the default image, send a GET request to:
https://<host>:<port>/imagemetadata/v1/fallback/{contentType}
Headers
-
Authorization– Keycloak access token for a user with theadminRolerole (see Accessing operator APIs using Keycloak)
Mandatory arguments
The following argument is in the URL:
-
contentType– the content type whose fallback image you want, exactly as it was given when the image was uploaded (for example,Movie). Usedefaultto get the default image. Content types are case-sensitive:Movieandmovieare two different fallback images.
Other arguments
None.
Example
This request gets the fallback image for movies:
https://<host>:<port>/imagemetadata/v1/fallback/Movie
Response
A successful request returns an HTTP 200 status. The response body is the image.
If there is no fallback image for the content type, the request returns an HTTP 500 status.
An unauthorised request returns an HTTP 401 status – for example, if the access token is invalid or has expired.
A forbidden request returns an HTTP 403 status – for example, if the access token is missing or the user does not have the adminRole role.
See also
For full details of this API, see the Image Metadata Service (IMDS) API documentation.