Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Backend Task Data Source THIRD PARTY API URL: ( Consider a . json url ) which has records like ( { id :
Backend Task
Data Source THIRD PARTY API URL: Consider a json url which has records like id: "title": "Fjallraven Foldsack No Backpack Fits Laptops", "price": "description": "Your perfect pack for everyday use and walks in the forest. Stash your laptop up to inches in the padded sleeve your everyday", "category": "men's clothing", "image: abc.jpg "sold": false, "dateOfSale": T:::
REQUEST METHOD: GET
RESPONSE FORMAT : JSON
GET
Create API to initialize the database. fetch the JSON from the third party API and initialize the database with seed data. You are free to define your own efficient table collection structure
Instruction :
All the APIs below should take month expected value is any month between January to December as an input and should be matched against the field dateOfSale regardless of the year.
GET
Create an API to list the allitransactions API should support search and pagination on product transactions Based on the value of search parameters, it should match search text on product titledescriptionprice and based on matching result it should return the product transactions If search parameter is empty then based on applied pagination it should retur all the records of that page numberDefault pagination values will be like page per page
GET
Create an API for statistics Total sale amount of selected month Total number of sold items of selected month Total number of not sold items of selected month
GET
Create an API for bar chart the response should contain price range and the number of items in that range for the selected month regardless of the year above
GET
Create an API for pie chart Find unique categories and number of items from that category for the selected month regardless of the year.For example X category : items Y category : items Z category : items
GET
Create an API which fetches the data from all the APIs mentioned above, combines the response and sends a final response of the combined SON
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