Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use restTemplate #44

Merged
merged 44 commits into from
Mar 10, 2024
Merged
Changes from 1 commit
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
e07162f
Add Customer POJO
nawaphonOHM Mar 9, 2024
19c670b
Add CustomerDetail POJO
nawaphonOHM Mar 9, 2024
60f850e
Implement FakeDatabaseComponent to mock data
nawaphonOHM Mar 9, 2024
4f25054
Add new Customer POJO
nawaphonOHM Mar 9, 2024
f5842b7
Also included are getter methods for first and last names.
nawaphonOHM Mar 9, 2024
27c1fb2
Implement FakeDatabaseComponent in MainController
nawaphonOHM Mar 9, 2024
ad59494
Add Logger to FakeDatabaseComponent and simplify code blocks
nawaphonOHM Mar 9, 2024
6b67d21
The commit message doesn't match the code diff provided. Based on thi…
nawaphonOHM Mar 9, 2024
6e75003
Add 'detailsId' field to 'Customer' class
nawaphonOHM Mar 9, 2024
81bf6a3
Add 'getCustomer' method to MainController
nawaphonOHM Mar 9, 2024
35998b6
Add 'getCustomerDetail' method to MainController
nawaphonOHM Mar 9, 2024
eac2132
Update the way FakeDatabaseComponent adds customers
nawaphonOHM Mar 9, 2024
6b01f6c
Add new ResponseMessage POJO class
nawaphonOHM Mar 9, 2024
3f723df
Add RestTemplateConfiguration class
nawaphonOHM Mar 9, 2024
6046a5f
Enable configuration properties scan in EventSourcingServiceConsumer
nawaphonOHM Mar 9, 2024
ae2b5ab
Add ConnectionConfiguration file in EventSourcingServiceConsumer
nawaphonOHM Mar 9, 2024
9c185f4
Update application properties for friend-service connection
nawaphonOHM Mar 9, 2024
afa84e2
Add 'ConfigurationPropertiesScan' annotation in ConnectionConfiguration
nawaphonOHM Mar 9, 2024
d2adf13
Inject RestTemplate into MainController
nawaphonOHM Mar 9, 2024
4989aaf
Add friendIp dependency to MainController
nawaphonOHM Mar 9, 2024
a7697b0
Add new endpoints to MainController
nawaphonOHM Mar 9, 2024
c0d16cd
update imports
nawaphonOHM Mar 9, 2024
fb833ee
Add FRIEND_IP error check in entrypoint.sh
nawaphonOHM Mar 10, 2024
8d25230
Add FRIEND_IP variable to consumer-vars.env
nawaphonOHM Mar 10, 2024
f848dfc
Update producer and consumer images in compose.yaml
nawaphonOHM Mar 10, 2024
ee65636
Add ObjectMapper to FakeDatabaseComponent
nawaphonOHM Mar 10, 2024
133d25b
Improve logging in FakeDatabaseComponent with serialization
nawaphonOHM Mar 10, 2024
1fd4cf7
Update 'FRIEND_IP' variable in consumer environment
nawaphonOHM Mar 10, 2024
e20cea4
Add default logging level to application properties
nawaphonOHM Mar 10, 2024
9f858d6
Fix customer UUID comparison in MainController
nawaphonOHM Mar 10, 2024
2829106
Update friend service IP port in consumer vars file
nawaphonOHM Mar 10, 2024
dac3d55
Add CustomerDetailsParameterizedTypeReference class
nawaphonOHM Mar 10, 2024
dddbfa5
Add CustomerParameterizedTypeReference class
nawaphonOHM Mar 10, 2024
af86d4e
Improve API call in MainController with ParameterizedTypeReference
nawaphonOHM Mar 10, 2024
5c94551
Add constructor to CustomerDetailsParameterizedTypeReference class
nawaphonOHM Mar 10, 2024
0adc00a
Add constructor to CustomerParameterizedTypeReference class
nawaphonOHM Mar 10, 2024
a722280
Add ObjectMapper to MainController constructor
nawaphonOHM Mar 10, 2024
83a833a
Refactor getCustomer method in MainController
nawaphonOHM Mar 10, 2024
1790e60
Import Jackson libraries into MainController
nawaphonOHM Mar 10, 2024
96b495c
Update FRIEND_IP in consumer-vars.env
nawaphonOHM Mar 10, 2024
54c7cfc
Add LOG_LEVEL to consumer-vars.env
nawaphonOHM Mar 10, 2024
4376fb4
Replace @Controller with @RestController in MainController
nawaphonOHM Mar 10, 2024
ffcbf91
Update annotation in MainController from @Controller to @RestController
nawaphonOHM Mar 10, 2024
b1d12c4
Update Dockerfile paths in Docker build action
nawaphonOHM Mar 10, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update 'FRIEND_IP' variable in consumer environment
The 'FRIEND_IP' in the consumer environment file has been updated to include a URL and port, rather than just a service name. This change means that connections can now be made directly via the specified URL and port, rather than through service discovery.
nawaphonOHM committed Mar 10, 2024
commit 1fd4cf76df9d8561a1b82bfde51e0f320d0d7d12
2 changes: 1 addition & 1 deletion messaging/consumer/consumer-vars.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
KAFKA_BOOSTRAP_SERVERS=kafka_0:9092
TZ=Asia/Bangkok
FRIEND_IP=producer_0
FRIEND_IP=http://producer_0:1001/event-sourcing/producer