Public
Documentation Settings

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
curl
curl --location 'https://backend-rate-it.herokuapp.com/browse/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

savi@gmail.com

Example Request
curl
curl --location 'https://backend-rate-it.herokuapp.com/browse/list?email=savi%40gmail.com'
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

savi@gmail.com

idm

645484

Example Request
curl
curl --location 'https://backend-rate-it.herokuapp.com/browse/remove?idu=savi%40gmail.com&idm=645484'
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

savi@gmail.com

movieID

645484

Example Request
curl
curl --location 'https://backend-rate-it.herokuapp.com/browse/add?userID=savi%40gmail.com&movieID=645484'
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers