Answered step by step
Verified Expert Solution
Question
1 Approved Answer
You are provided with the implementation of the models required for all the APIs. The task is to implement a set of REST services that
You are provided with the implementation of the models required for all the APIs. The task is to implement a set of REST services that exposes the endpoints and allows for filtering and sorting the collection of product records in the following ways:
GET request tofilterpriceinitialrangefinalrange:
returns a collection of all products whose price is between the initial and the final range supplied
The response code is and the response body is an array of products in the price range provided.
In case there are no such products return status code
GET request tosortprice:
returns a collection of all products sorted by their pricing
The response code is and the reppanse body is an array of the product names sorted in ascending ofder of price
Complete the given project so that it passes all the test cases when running the provided unit tests.
Example requests and responses
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