Vistula Java Task 2: FirstRestAPI this is a project for a Java course at Vistula University , basically a REST API for managing "Products". i made it on Spring Boot and Spring Data JPA. linkds: Swagger UI (for tests): http://localhost:8080/swagger-ui/index.html
H2 Console (database): http://localhost:8080/console/.
JDBC URL: jdbc:h2:mem:testdb
PI endpoints Base path: /api/v1/products
POST / - Create a product.
GET /{id} - Find a product by ID.
PUT /{id} - Update a product by ID.
GET / - Get a list of all products.
DELETE /{id} - Delete a product by ID.
Work examples: swagger UI general view of all endpoints
testing in Postman create a product (POST):
get Product by id (GET):
(PUT):
H2 console
check data in database after queries:

last question:Spring Data JPA automatically creates an implementation of this interface at runtime.


