0% found this document useful (0 votes)
252 views2 pages

Case Study - MyRetail RESTful Service

The document outlines plans to build an e-commerce shopping application with a front-end using HTML, CSS, and JavaScript, and a Java-based backend using an in-memory database. It then describes a product API project that will retrieve product and price details by ID from external APIs, returning the combined data as JSON. The API will support GET requests to get product data, and PUT/POST requests to update a product's price in the data store.

Uploaded by

chandra bhan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
252 views2 pages

Case Study - MyRetail RESTful Service

The document outlines plans to build an e-commerce shopping application with a front-end using HTML, CSS, and JavaScript, and a Java-based backend using an in-memory database. It then describes a product API project that will retrieve product and price details by ID from external APIs, returning the combined data as JSON. The API will support GET requests to get product data, and PUT/POST requests to update a product's price in the data store.

Uploaded by

chandra bhan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

MY Ecommerce Shopping Application

For UI We will be using HTML. The decoration and designing of UI will be done by CSS.
JavaScript will be used to handle events like click and submit of form and the request
will be directed to Java application code through AJAX. The Ajax will pass the request to
Rest Api which will handle the request.

Backend will be completely developed in Java. To make the application light we will be
using in memory database instead of heavy relational and non- relational database.

The goal for this exercise is to create an end-to-end project for a products API, which
will aggregate product data from multiple sources and return it as JSON to the caller.

Our goal is to create a Project that can retrieve product and price details by ID. The URL
structure is up to you to define, but try to follow some sort of logical convention.

This project will perform the following actions:

 Responds to an HTTP GET request at /products/{id} and delivers product data as


JSON (where {id} will be a number.
 Example product IDs: 15117729, 16483589, 16696652, 16752456, 15643793)
 Example response: {"id":13860428,"name":"The Big Lebowski (Blu-ray)
(Widescreen)","current_price":{"value": 13.49,"currency_code":"USD"}}
 Performs an HTTP GET to retrieve the product name from an external API. (For
this exercise the data will come from redsky.target.com, but let’s just pretend
this is an internal resource hosted by myRetail) 

 Example:
http://redsky.target.com/v2/pdp/tcin/13860428?excludes=taxonomy,price,promotion,
bulk_ship,rating_and_review_reviews,rating_and_review_statistics,question_answer_st
atistics
 Reads pricing information from another pricing api (https://price.
myRetail.com/product/{productId}/price) and combines it with the product id
and name from the HTTP request into a single response. 
Price API can be
mock API.
 Accepts an HTTP PUT and POST request at the same path (/products/{id}),
containing a JSON request body similar to the GET response, and updates the
product’s price in the data store. 


You might also like