I have developed a microservice using Spring Boot. This service is fetching the properties using Spring cloud config server. This microservice accepts version in the header and based on version , it executes the appropriate function. In my github repo , I have 2 branches , 1 for each version. The service usually sends the below information to config server to fetch the properties -
application-name + profile + label
Is there a way to have a placeholder in place of label in my .yml file? I want the label to be set to v1 dynamically , if I see v1 in the header else v2.
EDIT:
I see references to placeholder in this documentation (http://cloud.spring.io/spring-cloud-config/spring-cloud-config.html) under section "Placeholders in Git URI", however I am not sure how values can be substituted dynamically from incoming request