Timder App - Analysis
View the project roadmap here
See CONTRIBUTING.md for contribution guidelines.
Returns weight data about a single user.
- URL
/analysis/:id
-
URL Params
Required:
id=[integer]
-
Data Params
None
{
user_id: INT,
start_date: STRING,
end_date: STRING
}
user_id
Query for specific user's idstart_date
Request start dateend_date
Request end date
{
user_id: 23151,
start_date: '2017-10-1',
end_date: '2017-10-8'
}
{
weight_id: INT,
user_id: INT,
photo_count_weight: {
0: INT,
1: INT,
2: INT,
3: INT
}
}
weight_id
User's specific weight IDuser_id
User's specific ID numberphoto_count_weight
User's calculated weights for photo count
The calculated weights table is generated by joining Event Service, Swipes, and User Info tables. The photo_count_weight number will be calculated by measuring a specific user with X amount of photos to user matches for a given time range. Each photo count will have a weight attributed to it and based on how much weight is given, the Match service will prioritize and sort user cards accordingly.
-Node 6.9.x -Postgresql 9.6.x -express -pg -chai -mocha