@@ -0,0 +1,1356 @@
+/*%0A * THE SOFTWARE IS PROVIDED %22AS IS%22, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR%0A * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS%0A * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR%0A * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER%0A * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN%0A * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.%0A */%0A%0Apackage com.mpalourdio.springboottemplate.controllers;%0A%0Aimport org.springframework.cloud.client.ServiceInstance;%0Aimport org.springframework.cloud.client.discovery.DiscoveryClient;%0Aimport org.springframework.web.bind.annotation.GetMapping;%0Aimport org.springframework.web.bind.annotation.PathVariable;%0Aimport org.springframework.web.bind.annotation.RestController;%0Aimport java.util.List;%0A%0A@RestController%0Apublic class DiscoveryServerController %7B%0A%0A    private final DiscoveryClient discoveryClient;%0A%0A    public DiscoveryServerController(final DiscoveryClient discoveryClient) %7B%0A        this.discoveryClient = discoveryClient;%0A    %7D%0A%0A    @GetMapping(%22/service-instances/%7BapplicationName%7D%22)%0A    public List%3CServiceInstance%3E serviceInstancesByApplicationName(@PathVariable final String applicationName) %7B%0A        return discoveryClient.getInstances(applicationName);%0A    %7D%0A%7D%0A

Add a controller to fetch service instances