Access multi-lingual content through REST API

Hi,

This is really critical requirement. Request your support to respond!

I have created some content items for french locale(new translated channel), as per the instructions mentioned in link Add a Translated Channel - Bloomreach Experience - Open Source CMS.

When I am trying to access the content using the Content REST API, using the URL below, I am not getting any data for french content.

http://localhost:8080/site/api/documents

Thanks
Vishal Kumar Nalla

For supported projects, you can contact support via:

https://support.bloomreach.com/

(this is community forum and not official support)

We are using developer edition and trying to implement this requirement. When I say support, I need your views on this requirement, as how we can implement it.

You need to set up the content rest api for your french mount. Find the hst:host configuration for that channel and add the hst:mount config for the content rest api. Something like:

/api:
  jcr:primaryType: hst:mount
  jcr:uuid: 759ab0f2-fc01-40a7-bb52-ea3446f0531f
  hst:alias: api
  hst:ismapped: false
  hst:mountpoint: /hst:hst/hst:sites/myfrenchsite
  hst:namedpipeline: PipelineForContentRestApiCHANGETHIS
  hst:types: [rest]

this api node should go under your french locale so your api url would be:
localhost:8080/site/fr/api/documents

Thank you for the response. Let me try and get back to you.