api gateway microservices zuul code example
Example: spring boot eureka , zual hystrix, rest api docs
@Autowired
private EurekaClient discoveryClient;
public String serviceUrl() {
InstanceInfo instance = discoveryClient.getNextServerFromEureka("STORES", false);
return instance.getHomePageUrl();
}