Skip to content

Add endpoints to toggle the recommendation process#4

Merged
fcgl merged 1 commit intofcgl:masterfrom
1jeanpaul1:endpointTemplate
Oct 16, 2019
Merged

Add endpoints to toggle the recommendation process#4
fcgl merged 1 commit intofcgl:masterfrom
1jeanpaul1:endpointTemplate

Conversation

@1jeanpaul1
Copy link
Contributor

Problem

  1. We need a way to toggle the procedure that creates the user recommendations
  2. We need a way to get user recommendations

Solution

  1. Add endpoint http://localhost:5000/user_recommendation/v1/toggle
    • Toggles the procedure that creates the user recommendations
  2. Add endpoint: http://localhost:5000/user_recommendation/v1
    • Gets user product recommendations

Testing

  1. Make an api request to http://localhost:5000/dev/v1/populate_data
    • This will populate your database with 2 Users and 3 Products. This is enough
      to test the generic version of the recommendation system (based on popularity)
  2. To toggle the recommendation process make an API request to http://localhost:5000/user_recommendation/v1/toggle
  3. To see a user's recommendation make an api request to http://localhost:5000/user_recommendation/v1?userId=1
    (Where userId can be the id of any user in the database)

@fcgl fcgl merged commit 144f6b7 into fcgl:master Oct 16, 2019
sayoojbk referenced this pull request in sayoojbk/recommendation Oct 17, 2019
Add endpoints to toggle the recommendation process (#4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants