This is a simple Spring Boot Rest CRUD application. It uses Spring Boot, Spring Data JPA, Lombok, JUnit, Mockito, Maven and PostgreSQL.
This application is a simple CRUD application for a Product
entity. It has the following endpoints:
api/v1/
-
GET product/
- Get all products -
GET product/{ids}
- Get a product by id.product/1
orproduct/1,2,3
-
GET product/codes/{codes}
- Get a product by code.codes/1
orcodes/1,2,3
-
GET product/name/{name}
- Get a product by name.name/1
-
GET product/priceHrk/{priceHrk}
- Get a product by price.priceHrk/1.00
-
GET product/priceEur/{priceEur}
- Get a product by price.priceEur/1.00
-
GET product/description/{description}
- Get a product by description.description/1
-
GET product/availability/{availability}
- Get a product by availability.availability/AVAILABLE
oravailability/NOT_AVAILABLE
-
POST product/create
- Create a new product -
PUT product/update
- Update a product
-
- Have a PostgreSQL database running on your machine
- Java 17
- Maven
- Run init.bat to create the database and the user.