Skip to content

silvioincalza/zuul-proxy-url-rewrite-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zuul Proxy Url Rewrite Plugin Build Status

The UrlRewriteZuulFilter is a implementation of a ZuulFilter is able to recognize, using Ant pattern matching which is already used by Zuul and SpringMVC this complex pattern using a prefix on the url parameter called urlRewrite.

If you import zuul package you will be able to do:

zuul:
  routes:
    aConfig:
      path: /v1/{param1:\w+}/{param2:\w+}/services/test/{param3:\w+}
      url: urlRewrite:http://localhost:${mockwebserver.port}/services/test/{param2}

To know about the meaning of {param1:\w+} and how to create your pattern matching you can read AntPathMatcher api docs

Be aware that on the url property you don't have to repeat the path matching pattern, so instead of {param2:\w+} just use {param2}

About

url rewrite plugin for zuul-proxy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published