common properties

where can I store the common properties? For example, i got 5 proxy service where in all the services talk to the same back end and wanted to store that hostname,port,etc in a property file and will get it from there every time rather hard-coding it.

0 1 91
1 REPLY 1

@Popleys

1. You can use the Target Servers in Environment Configuration to have the hostname and port definitions. The target server definitions can be referred to in the API proxy target endpoint under the Loadbalancer configuration. This is the recommended approach.

2. If you do not want to use the loadbalancer configuration, you can inject the right values in your CD pipeline using different configuration values for each environment, through the apigee-deploy maven plugin before deploying the API proxy.

https://github.com/apigee/apigee-deploy-maven-plugin/blob/master/samples/forecastweatherapi-recommen...