host a rest api in zuul api gateway 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();
}