API specification for the hint API
I'm going to send the API key as an Authorization header in the Http request on every request
Authorization=<API key>
I'm going to send POST request to the /user
endpoint
[POST] /user
{
"uName": "username",
"uMail": "userEmail",
"uPhone": "User phone number"
}
Code:
201
(created)
{
"uId": "userID"
}
Code:
409
(conflict)
{
"message": "User exists"
}
[POST] /modify-preferences/:userId
[ "Male", "Female", "Neflix", "Light Comedy" ] // Any Key word from the keywords array
200
(OK)
[POST] /save-feedback
{
"movieID": "tt304958658"
"feedback": "LIKE" // Possibilities [LIKE, DISLIKE, SHOW_MORE, SHOW_LESS, SEEN]
}
Code:
204
(No Content)
[GET] /recommend/:userId
Code:
200
(OK)
{
"movieID": "tt304958658",
"name": "Movie name",
"imageUrl": "Image url",
"triggers": ["Male", "Female", "Neflix", "Light Comedy"],
"durationMins": 120,
"editorial": "This is a great movie"
}