Rate-It-Backend
Backend API for the Rate-It-Project
GETRequest Leaderboard
https://backend-rate-it.herokuapp.com/browse/leaderboard
It scans the database and an array containing the movieID and the votes casted to that movie in decreasing order is returned.
Example Request
Request Leaderboard
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers
GETList the movies of a User
https://backend-rate-it.herokuapp.com/browse/list?email=savi@gmail.com
The array of movies nominated by the user with the passed email is returned.
PARAMS
email
Example Request
List the movies of a User
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers
GETDelete Movie for a user
https://backend-rate-it.herokuapp.com/browse/remove?idu=savi@gmail.com&idm=645484
Deletes the tuple which has the passed email and movieID.
PARAMS
idu
idm
Example Request
Delete Movie for a user
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers
GETAdd Movie for a User
https://backend-rate-it.herokuapp.com/browse/add?userID=savi@gmail.com&movieID=645484
Pushes the values of movieID and userID into the database.
PARAMS
userID
movieID
Example Request
Add Movie for a User
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers