This article covers a Bloomreach Experience Manager version 12. There's an updated version available that covers our most recent release.

Install the Content HAL API Add-on

Bloomreach offers Enterprise support for this feature to Bloomreach Experience customers. The release cycle of this feature may differ from our core product release cycle. 

Prerequisites

To be able to use the Content HAL API add-on, your implementation project must be set up as a Bloomreach Experience Manager project.

Instructions

Add Maven Dependency

In the main pom.xml of your project, add a new property in the properties section. For the correct version number for your project, check the Release Notes page.

    <content-hal-api.version>version-number</content-hal-api.version>

In the site module of your project, add the following dependency in the pom.xml:

    <dependency>
      <groupId>com.onehippo.cms7</groupId>
      <artifactId>hippo-addon-content-hal-api-service</artifactId>
      <version>${content-hal-api.version}</version>
    </dependency>

Configure Delivery Tier Mount

Add an API mount, with hst:namedpipeline = HalRestApiPipeline, like the following example (expressed in YAML format).

/hst:hst/hst:hosts/dev-localhost/localhost/hst:root/api:
  jcr:primaryType: hst:mount
  hst:alias: api
  hst:isSite: false
  hst:ismapped: false
  hst:mountsite: site
  hst:namedpipeline: HalRestApiPipeline
  hst:types: [rest]

After rebuilding the project and restarting the server, you will be able to test the built-in Content HAL APIs right way. See Example Request/Response Payloads page for details.

Did you find this page helpful?
How could this documentation serve you better?
On this page
    Did you find this page helpful?
    How could this documentation serve you better?