Skip to content

yava-code/VistulaJavaSecondTask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

swagger.png

testing in Postman create a product (POST):

firstPost.png

get Product by id (GET):

getFirst.png

(PUT): put.png H2 console check data in database after queries: DB.png db_products.png

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages