Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle HTTP request to fetch the shopping cart of the user #3

Open
EmadAghaei opened this issue Apr 17, 2019 · 0 comments
Open

Handle HTTP request to fetch the shopping cart of the user #3

EmadAghaei opened this issue Apr 17, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@EmadAghaei
Copy link
Member

EmadAghaei commented Apr 17, 2019

A user may want to see his/her shopping cart, generating an HTTP request for fetching the shopping cart. Shopping cart contains all items that the user added before. The handler search among shopping carts of users and finds the user's shopping cart. Each user has only one shopping cart, if the handler finds more than one or zero shopping cart for the user it should return a meaningful response with a description. The user logged in the system and tried to fetch shopping cart, the handler should store a log from the items that the user added to the shopping cart for future item recommendations. An example JSON log object is { id: Number, userId: String, itemId: Number, action: String, date: String, adtType: String}. The handler may make use of a 3rd party persistence library. If any of the input arguments are empty or null, a 400 response should be returned with a description.

Important notes: The endpoint address is "/fetchShoppingCart", the URL query parameter is: "userId"

@EmadAghaei EmadAghaei added the enhancement New feature or request label Apr 17, 2019
@Microtasking Microtasking changed the title Immplementing HTTP request, fetching the shopping cart of the user Handle HTTP request to fetch the shopping cart of the user Sep 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant