springboot with thymeleaf

UF01-1844

Introduction

I use a library to define the model. I use two springboots: one to do the query and another to response. The client is on port 8086 and the backend on port 8001

flowchart LR
  A[Client] --> B[reservation/reservations] --> C[Backend]
  C --> D[reservations]

Call to url below

http://localhost:8086/reservation/reservations?datestart=20-08-2023&dateend=21-08-2023

Calling to server

 ResponseEntity<List<Reservation>> response = restTemplate.exchange(
                "http://localhost:8081/reservations?datestart=" + dateStart + "&dateend=" + dateEnd,
                HttpMethod.GET,
                null,
                new ParameterizedTypeReference<List<Reservation>>() {}

Test call to server

fig 1

Project folders

fig 2

fig 3

Result

fig 4

lab delivery Code (UF01-1844)