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 recently items #7

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

Handle HTTP request to view recently items #7

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 make an HTTP request to view the list of items that they have previously viewed. This handler searches the items log of all users and returns the items viewed by the user (which has the viewed flag set). If there are no such items, it returns an empty collection. The handler may make use of a 3rd party persistence library. Finally, the handler should check the validity of the input arguments. If any of the input arguments are empty or null, a 400 response should be returned with a description.

Important notes. The endpoint address should be "/recentlyViewedItems". The URL query parameter is "userId".

@EmadAghaei EmadAghaei added the enhancement New feature or request label Apr 17, 2019
@tlatoza tlatoza changed the title Implement HTTP request, recently viewed items Handle HTTP request to view recently items Sep 13, 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