Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Latest commit

 

History

History
27 lines (18 loc) · 880 Bytes

File metadata and controls

27 lines (18 loc) · 880 Bytes

Template Endpoint

The DefaultRestClient includes a DefaultRestTemplateEndpoint with the following functionalities.

Warning

WIP

Ensure existence of a template

Uploading necessary operational templates is vital for many other client functions.

The ensureExistence(String templateId) method combines a check and the upload, if the template is not already available on the server.

The following example utilizes a TemplateProvider (see Client reference <sdk-reference-client_module-client-template_provider-label>) to go through all templates of the client's scope and ensure their existence:

templateProvider.listTemplateIds().forEach(
        t -> client.templateEndpoint().ensureExistence(t)
);