Maybe it will be useful for someone! As far as I could understand the problem:
cloud:
gateway:
routes:
- id: resume-analyzer-route
uri: http://resume-analyzer:8083
But you can implement a bean in each service and in API Gateway, for manual server configuration, which will override the default server, it helped me!
@OpenAPIDefinition
@Configuration
public class OpenApiConfig {
@Bean
public OpenAPI customOpenAPI() {
return new OpenAPI()
.addServersItem(new Server()
.url("http://localhost:8765/analyzer")
.description("Analyzer API"));
}
}