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 view purchase history #8

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

Handle HTTP request to view purchase history #8

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

Users may submit an HTTP request to view their purchase history. This handler searches the users' logs and returns items that the user purchased. Each item in the log has a flag which indicates if the item was bought, viewed, or searched by the user. This handler should return the items with the bought flag. If there are no such items, it returns an empty collection. The handler may interact with a 3rd party persistence library to retrieve data. If any of the input arguments are empty or null, a 400 response should be returned with a description. An example JSON log object is { id: Number, userId: String, itemId: Number, action: String, date: String, adtType: String}.

Important notes. The endpoint address should be "/purchasesHistories". URL query parameter: "userId"

@EmadAghaei EmadAghaei added the enhancement New feature or request label Apr 17, 2019
@tlatoza tlatoza changed the title Implement HTTP request, purchases historoies Handle HTTP request to view purchase history Sep 13, 2019
@EmadAghaei EmadAghaei reopened this Nov 12, 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