0% found this document useful (0 votes)
85 views3 pages

Product Detail Application Tools & Techonlogies Used:: Eclipse Spring Boot 2 Hibernate 5 Java 8 Postgresql 9.5

This document summarizes a product detail application created using Eclipse, Spring Boot 2, Hibernate 5, Java 8, and PostgreSQL 9.5. It describes how to run the application by creating a 'ProductDB' database, configuring the application.properties file, and running on port 4001. Screenshots show APIs for saving a product with a POST request, getting all products with pagination parameters, and examples of the 2nd and 3rd pages which has and does not have elements. Some validations are noted to still be pending.

Uploaded by

Reetika Arora
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
85 views3 pages

Product Detail Application Tools & Techonlogies Used:: Eclipse Spring Boot 2 Hibernate 5 Java 8 Postgresql 9.5

This document summarizes a product detail application created using Eclipse, Spring Boot 2, Hibernate 5, Java 8, and PostgreSQL 9.5. It describes how to run the application by creating a 'ProductDB' database, configuring the application.properties file, and running on port 4001. Screenshots show APIs for saving a product with a POST request, getting all products with pagination parameters, and examples of the 2nd and 3rd pages which has and does not have elements. Some validations are noted to still be pending.

Uploaded by

Reetika Arora
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 3

Product Detail Application

Tools & Techonlogies Used:


 Eclipse
 spring boot 2
 hibernate 5
 Java 8
 Postgresql 9.5

Steps to run application:


1. Create database name - ‘ProductDB’
2. change db server details in Application.properties file.
spring.datasource.url = jdbc:postgresql://localhost:5432/ProductDB
spring.datasource.username = postgres
spring.datasource.password = root
3. Application running port : 4001

Screenshot:
1. Product save API:
Url - /api/v1/product
Method – POST
Request Body:
Form -data:
{ “productName” : ”Sixth”,
“color”: “Black”,
“price”:43.3,
“categoryName”: “Hand bag”,
“Attachment”: // select image by setting }
2. Get Products API:
Url - /api/v1/product/all?page=2&limit=5
Method – Get

3. Get Product for 2nd page:


4. Get Product for 3nd page: (total elements in 6 elements and displaying 3rd page which does not
have elements)

Note: Due to time constraint :


1. validations are pending like RequiredFieldValidation for product item.
2. Upload file size validation(not mentioned).
3. File extension validation.

You might also like