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 browse an item #2

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

Handle HTTP request to browse an item #2

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 might browse an item with the name of the item. It is very similar to search among item, but here the handler is quicker and only searches among names of items t find the item. generating an HTTP request for browsing an item. The handler searches among items for finding the desired item. It is possible something be wrong and the function could not find the item, so the handler must return meaningful message. It is possible that a user wants to only view items and does not login into the online store (in this case the userId is null or empty, it should not check the validity of userId), so we do not have the information about the user , but when the user already logged in the system and tried to browse items, the handler should store a log object from the items that the user browsed, this log can be useful for future recommendations.
If any of the input arguments are empty or null, a 400 response should be returned with a description. The handler may make use of a 3rd party persistence library.

Important notes: the endpoint address is "/browseItems", the URL query parameters are: "userId" , "itemName"

@EmadAghaei EmadAghaei added the enhancement New feature or request label Apr 17, 2019
@Microtasking Microtasking changed the title Implement HTTP request,browse an item Handle HTTP request to browse an item 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