mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-08-18 00:23:32 +00:00
docs: update client-side ui composition
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
---
|
||||
title: "Microservices API Gateway Pattern in Java: Simplifying Service Access with a Unified Endpoint"
|
||||
shortTitle: Microservice API Gateway
|
||||
shortTitle: Microservices API Gateway
|
||||
description: "Learn how the API Gateway pattern simplifies client-side development, enhances security, and optimizes communication in microservices architecture. Explore examples, benefits, and best practices."
|
||||
category: Integration
|
||||
language: en
|
||||
|
||||
+1
@@ -45,6 +45,7 @@ public class ImageClientImpl implements ImageClient {
|
||||
*/
|
||||
@Override
|
||||
public String getImagePath() {
|
||||
|
||||
var httpClient = HttpClient.newHttpClient();
|
||||
var httpGet =
|
||||
HttpRequest.newBuilder().GET().uri(URI.create("http://localhost:50005/image-path")).build();
|
||||
|
||||
Reference in New Issue
Block a user