Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Api versions #3

Closed
lex-em opened this issue Apr 2, 2018 · 2 comments
Closed

Api versions #3

lex-em opened this issue Apr 2, 2018 · 2 comments
Assignees
Milestone

Comments

@lex-em
Copy link
Owner

lex-em commented Apr 2, 2018

Try resolve versions if configured

@lex-em lex-em self-assigned this Apr 2, 2018
@lex-em
Copy link
Owner Author

lex-em commented Apr 2, 2018

some information:

  1. http://cloud.spring.io/spring-cloud-static/spring-cloud-netflix/2.0.0.M8/single/spring-cloud-netflix.html#netflix-zuul-reverse-proxy
@Bean
public PatternServiceRouteMapper serviceRouteMapper() {
    return new PatternServiceRouteMapper(
        "(?<name>^.+)-(?<version>v.+$)",
        "${version}/${name}");
}
  1. Zuul metadata aware routing spring-cloud/spring-cloud-netflix#458

lex-em pushed a commit that referenced this issue Feb 19, 2019
feature preview. the main work is done
lex-em pushed a commit that referenced this issue Feb 19, 2019
gradle build fix, switch to wrapper
lex-em pushed a commit that referenced this issue Feb 19, 2019
gradle build fix, switch to wrapper
lex-em pushed a commit that referenced this issue Feb 19, 2019
all is tested
lex-em pushed a commit that referenced this issue Feb 19, 2019
@lex-em
Copy link
Owner Author

lex-em commented Feb 19, 2019

ServiceRouteMapper bean

@Bean
public ServiceRouteMapper serviceRouteMapper() {
    return new PatternServiceRouteMapper(
        "(?<name>^.+)-(?<version>v.+$)",
        "${version}/${name}");
}

should be defined in separate configuration for autoconfiguration, in other way https://github.com/lex-em/zuul-springfox-swagger/blob/master/src/main/java/ru/reliabletech/zuul/swagger/service/ServiceRouteMapperRouteService.java should be defined as bean manually

@lex-em lex-em added this to the 0.2.0 milestone Feb 19, 2019
@lex-em lex-em closed this as completed Feb 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant