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 find top most similar items #6

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

Handle HTTP request to find top most similar items #6

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 compare a browsed item with other similar items, generating an HTTP request to find similar items with a browsed item. The handler should search among the items in the store that their name includes the name of the browsed item, if similar items are more than 20 items, The handler only returns top 20 items that have rating more than 3 stars (ex: there exist 35 similar items, The handler should only return the 20 items rated more than 3 stars), if the handler could not find any similar item it returns empty collection. The user already logged in the system and tried to comparing items, the handler should store a log from the items that the user have seen, this can be useful for future item recommendations. The handler may make use of a 3rd party persistence library. finally, the handler should also check the validity of input arguments, the handler should check the information of the user, information of the item to not be empty or null, if it is invalid a 400 response should be returned with a description.

Important notes: The endpoint address is "/fetchTopMostSimilarItems", 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 a new HTTP request, Top Most Similar Items to an item Handle HTTP request to find top most similar items 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