Question: 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 201 if the object is valid
all the properties are validated using the following rules:
productName cannot be empty, if empty, then returns status code 400 and message "Product name is mandatory"
customerEmail should be a valid email, if invalid, returns status code 400 and message "Invalid customer email"
sellingPrice should be positive integer, if invalid, returns status code 400 and message "Vatue should he mone negative"
sellingPrice should be positive integer, if invalid, returns status code 400 and message "Value should be none negative"
buyingPrice should be positive integer, if invalid, returns status code 400 and message "Value should be none negative"
GET request to /sell/ id
 SpringBoot (Debugging): Sells API Data Example of a Sell data JSON

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!