Answered step by step
Verified Expert Solution
Link Copied!

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 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
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Datalog Engines In Databases

Authors: Bas Ketsman ,Paraschos Koutris

1st Edition

1638280428, 978-1638280422

More Books

Students also viewed these Databases questions