close

Filter

loading table of contents...

Connector for HCL Commerce Manual / Version 2304

Table Of Contents

3.6 Configuring REST Handlers

Content Cloud requires additional REST handlers and some configuration of existing handlers.

Adding New REST Handlers

CoreMedia eCommerce API comes with additional REST handlers in order to make more data accessible and to provide additional data processing capabilities. The handler classes reside in the WebSphereCommerceServerExtensionsLogic module.

You have to add the following handlers:

LanguageMapHandler

The LanguageMapHandler returns a list of all available languages of the WebSphere Commerce Server with its mapping on the internal language identifier which is used for certain REST calls.

StoreInfoHandler

The StoreInfoHandler returns the storeId and the catalog information of all available stores in the WebSphere Commerce Server.

In order to add the handlers proceed as follows:

  1. Add the CoreMedia LiveContext library package to the Rest module in your commerce development workspace.

  2. Add the following fully qualified names of the handlers to the file WCDE-INSTALL/workspace/Rest/WebContent/WEB-INF/config/resources-ext.properties accordingly to the HCL Commerce Workspace archive.

  3. Add a resource element for each handler to the file WCDE-INSTALL/workspace/Rest/WebContent/WEB-INF/config/com.ibm.commerce.rest-ext/wc-rest-resourceconfig.xml accordingly to the HCL Commerce Workspace archive.

  4. For the CacheInvalidationHandler add the file WCDE-INSTALL/workspace/WC/xml/config/com.ibm.commerce.catalog-ext/wc-query-CoreMedia-LiveContext.tpl from the HCL Commerce Workspace archive. The file contains a database template to access HCL Commerce CACHEIVL table.

  5. Adapt all dbtype properties to your target database.

Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.