SpringWebTelusko3 is a simple Spring Boot application that provides a RESTful API for managing products. It leverages Spring Web, JPA, PostgreSQL and Hibernate to handle CRUD (Create, Read, Update, Delete) operations for the Product entity.
- Retrieve a list of all products
- Retrieve a specific product by name
- Add new products (commented out in the current code)
- Product entity with properties such as name, type, place, and warranty
- Integration with an H2 in-memory database using Spring Data JPA
- Java
- Spring Boot
- Spring Web
- Spring MVC
- Spring Data JPA
- Hibernate
- H2 in-memory database
- postgreSQL
To run the project locally, follow these steps:
- Make sure you have Java Development Kit (JDK) installed on your system.
- Clone this repository to your local machine or download the source code.
- Open the project in your preferred Integrated Development Environment (IDE).
- Build the project to download the necessary dependencies.
- Run the application.
The API endpoints can be accessed using a tool like cURL or through a web browser. Here are a few examples:
- Retrieve all products:
GET http://localhost:8080/products
- Retrieve a specific product by name:
GET http://localhost:8080/products/{name}
Contributions to this project are welcome. If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.