Labels API


Currently there are two endpoints available for retrieving labels:


http://www-grandvision.test.onehippo.com/swagger#!/resources

The old endpoint: #getResources and the new endpoint: #getResources per opco.


The old endpoint will retrieve global (core) labels. In the new endpoint it will be possible to overwrite the global labels by specifying the opco as a path parameter. To overwrite the label you will need a local resource bundle document in the opco.


The image below shows an example (support label overwriting the email address):

The example below shows an overwrite in the opco domain:

The convention for the ID of a label is as follows: <original resource label id>.<language name>.<opco name> for example: "grandvision.public.labels.support.en.io-whitelabel" to overwrite "grandvision.public.labels.support"

In the old resource api there is no merging with opco:

In the new resource API merging is possible:

Use the new resource label endpoint whenever possible!