Files
spring-boot-microservices-p…/openfeign-demo/output/01-happy-path.txt
T

12 lines
684 B
Plaintext

findAll() -> [Student[id=1, name=Asha, branch=CS], Student[id=2, name=Ravi, branch=IT], Student[id=3, name=Meera, branch=EXTC]]
findById(2) -> Student[id=2, name=Student-2, branch=CS]
create(Kiran, ME) -> Student[id=100, name=Kiran, branch=ME]
Feign's own log (logger-level: basic):
[StudentClient#findAll] ---> GET http://student-service/api/students HTTP/1.1
[StudentClient#findAll] <--- HTTP/1.1 200 (138ms)
[StudentClient#findById] ---> GET http://student-service/api/students/2 HTTP/1.1
[StudentClient#findById] <--- HTTP/1.1 200 (7ms)
[StudentClient#create] ---> POST http://student-service/api/students HTTP/1.1
[StudentClient#create] <--- HTTP/1.1 201 (6ms)