Answered step by step
Verified Expert Solution
Question
1 Approved Answer
SpringBoot ( Debugging ) : Sells API Data Example of a Sell data JSON object: Requirements In this project, sell data are provided for many
SpringBoot Debugging:
Sells API
Data
Example of a Sell data JSON object:
Requirements
In this project, sell data are provided for many countries with API endpoints for fetching specific information. Note that all the data are virtual.
The following REST endpoints have been implemented.
POST request to sell:
accepts a sell object, returns status code if the object is valid
all the properties are validated using the following rules:
productName cannot be empty, if empty, then returns status code and message "Product name is mandatory"
customerEmail should be a valid email, if invalid, returns status code and message "Invalid customer email"
sellingPrice should be positive integer, if invalid, returns status code and message "Vatue should he mone negative"
sellingPrice should be positive integer, if invalid, returns status code and message "Value should be none negative"
buyingPrice should be positive integer, if invalid, returns status code and message "Value should be none negative"
GET request to sell id
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started