Skip to content
Discussion options

You must be logged in to vote

Below is my stackoverflow post:

I have two yaml files I am using. The first yaml file looks like this:

spring.yml

spring:
  cloud:
    gateway:
      routes:
      - id: someid
	    uri: someUri
	    predicates:
	    - Path=/somePath
	    filters:
	    - RewritePath=/someOtherPath

I have another file that just contains routes and looks like this:

routes.yml

routes:
  - id: someid
    uri: someOtherUri
    predicates:
    - Path=/somePath
    filters:
    - RewritePath=/someNewPath

My goal is to update the route in the first file with the value of the route in the second file. Note that the first file in reality will have many routes but for demonstration purposes I am only showing the f…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@mikefarah
Comment options

@ghost
Comment options

@mikefarah
Comment options

@ghost
Comment options

@mikefarah
Comment options

Answer selected by mikefarah
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant