This Spring Boot application demonstrates how to consume a REST API, map the retrieved data to DTOs, and expose the data through a new REST API endpoint. The application includes two images: one illustrating the main API you are consuming and another showing your API's endpoint.
These instructions will help you set up and run the project on your local machine for development and testing purposes.
- Java Development Kit (JDK) 8 or higher
- Gradle (for building the project)
- Your favorite Integrated Development Environment (IDE)
-
Clone this repository to your local machine:
git clone https://github.com/polakDas/consumeRestAPI.git
-
Open the project in your IDE.
-
Build the project using Gradle:
gradlew build
-
Start the Spring Boot application:
gradlew bootRun
-
The application should now be running at http://localhost:8080.
You can access the API endpoint by making a GET request to http://localhost:8080/. It returns data retrieved from the main API after mapping it to DTOs.
- Spring Boot - The framework used
- Gradle - Build tool
This project is licensed under the MIT License - see the LICENSE.md file for details.
- Thanks to Alex Wohlbruck for providing the data used in this project.