Class RestApiManager

java.lang.Object
io.goobi.viewer.controller.RestApiManager

public class RestApiManager extends Object

Handles urls to configured rest api endpoints.

Two endpoints are managed: one for data (solr, dao) and one for content (image, ocr, other media) An AbstractApiUrlManager is kept for both. These can either be injected directly in the constructor or resolved from a Configuration.

In the latter case, data resources url is taken from Configuration.getRestApiUrl(), content resources url is taken from Configuration.getIIIFApiUrl().

Both urls are updated if the configuration changes. Also, if the configured url contains '/rest' that part is rewritten to '/api/v1' if the rewritten url points to a goobi viewer v1 rest api.

Author:
florian