Question: For this assignment, you will need to create a Netbeans project using spring initializer ( with the appropriate dependencies ) . For this database assignment,
For this assignment, you will need to create a Netbeans project using spring initializer with the
appropriate dependencies For this database assignment, assume that I willhave created a mysql database. You will need to perform this work using Spring Boot and either JPA preferred or JBDCPart I: GET endpoints
Get all products optional category path variable
a If category is present, return all products with the given category
b If not, return all products
Get product with given SKU path variable
a If the product with the given sku exists, return it
b Otherwise, return
Get the number of products given a category path variable
a If the category exists, return the number
b Otherwise, return
Get the products in a given price range path variables
a Return a list of the products using the upper and lower bounds of the price range given.
b Note: price range should be given using upper and lower bounds.
Get the products that match a given search string path variable
a Return a list of the products that match a search string
b Note: You should look at name & description to determine if the search string is
contained within.
Part II: POST endpoints
Add a product
a No duplicates allowed
b Report with product if conflict otherwise
Part III: PUT endpoints
Update a product
a If the product exists, update it
b Else, add the product
Part IV: DELETE endpoints
Delete product with given sku path variable
a Report with product if otherwise
Part V: Error Handling
Include appropriate exception and error handling
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
