Install the Content HAL API Add-on
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.