When implementing the API Registry module, you configure the standard host address for your exposed destinations.
Context
SAP provides a project property that you can use to change the host address that you use for exposed destinations. This allows you to change multiple exposed destination URLs without having to change each host address separately. Reregister the URLs for the changes to take effect.
Procedure
- Go to the hybris/config directory.
- Open the local.properties file.
- Set the ccv2.services.api.url.0 property to the host address of your SAP Commerce system.
For example:
ccv2.services.api.url.0=https://localhost:9002
- Go to the hybris/bin/api-registry/apiregistryservices directory.
- For each of the exposed destinations that you want to use this host address, enter the parameter in the URL field in curly braces as follows: {ccv2.services.api.url.0}.
SAP recommends performing this step for any custom exposed destinations you later create aside from the default ones.
You can add any specific elements of the URL as usual.
- For each of the exposed destinations respective endpoints, enter the parameter in the SpecURL field in curly braces as follows: {ccv2.services.api.url.0}.
You can add any specific elements of the URL as usual.