ePages 7.23.0 - DE_EPAGES/EPagesJ/API/UriTemplateFactory.pm

Package DE_EPAGES::EPagesJ::API::UriTemplateFactory

Creates UriTemplates initialized for current shop, by inserting shopId and dsName from the current context.

@EXPORT_OK
CreateUriTemplates

Functions

CreateUriTemplates

CreateUriTemplates

Creates a list of UriTemplate objects, according to the URL pattern for RemoteSearch-based URLs.

Syntax
my $hUriTemplates = CreateUriTemplates($Object, $aPathTemplates);
Input
$Object (object)
base object for url
$aPathTemplates (array.string)
list of path templates.
dsName and shopId parameters will be replaced by the given object's context
$baseUrl (string)
alternate baseUrl (optional)
$hUriArgs (ref.hash)
additional uri parameters (optional)
Return
$hTemplates (ref.hash.DE_EPAGES::EPagesJ::API::Object::UriTemplate)
maps of pathTemplates from input params to URI Template