Project using RestTemplate to call API Service.
Extra: Using Exception Handler using @ControllerAdvice and @ExceptionHandler
- Language: Java 17
- Framework: SpringBoot 3
- Dependency management: Maven 3.6.3
Click the link below to download the Postman collection:
- Download the file from the link above.
- Open Postman.
- Click "Import" in the top left corner.
- Select the downloaded
api-client-service-rest-template.postman_collection.json
file. - You can now test the API endpoints using the provided examples.
-
spring-boot-starter-web
-
lombok
-
h2
- controllers: Used to define endpoints.
- service: Used to process logic bussines.
- repository: Used to connect with relational databases .
- proxy.client: Implements Classes to connect with other REST Services.
- config: Used to configure the project behaviour.
- model: Used to create simples object like POJOs, DTOs.