TylerNP / 365MM-

0 stars 0 forks source link

Test Results (Edson Munoz) #33

Open edsonmunoz opened 2 weeks ago

edsonmunoz commented 2 weeks ago

Existing Flows

Get a Movie to Watch:

  1. curl -X 'GET' \ 'https://three65mm.onrender.com/users/login?username=edson1' \ -H 'accept: application/json'

Response:

{
  "user_id": 34
}
  1. curl -X 'GET' \ 'https://three65mm.onrender.com/movies/user/34' \ -H 'accept: application/json'

Response:

{
  "movie_id": 75,
  "name": "Big Bully",
  "release_date": "1996-01-26T00:00:00+00:00",
  "description": "A writer returns to his hometown where he faces the childhood nemesis whose life he ultimately ruined, only the bully wants to relive their painful past by torturing him once again.",
  "average_rating": null,
  "budget": 15000000,
  "box_office": 2042530
}
  1. curl -X 'GET' \ 'https://three65mm.onrender.com/analytics/movies/75' \ -H 'accept: application/json'

Response

{
  "views": 0,
  "rated": 0,
  "average_rating": null,
  "liked": null,
  "disliked": null
}

Example Flow 2

    1. curl -X 'GET' \ 'https://three65mm.onrender.com/users/login?username=edson1' \ -H 'accept: application/json'

Response:

{
  "user_id": 34
}
  1. curl -X 'POST' \ 'https://three65mm.onrender.com/users/34/rate/1?rating=5' \ -H 'accept: application/json' \ -d ''

Response

{
  "success": true
}
  1. Last endpoint does not exist

Example Flow 3

  1. curl -X 'GET' \ 'https://three65mm.onrender.com/users/login?username=edson1' \ -H 'accept: application/json'

Response:

{
  "user_id": 34
}
  1. curl -X 'GET' \ 'https://three65mm.onrender.com/recommendations/34' \ -H 'accept: application/json'

Response

[
  {
    "movie_id": 6619,
    "name": "The Triplets of Belleville",
    "release_date": "2003-06-11T00:00:00+00:00",
    "description": "When her grandson is kidnapped during the Tour de France, Madame Souza and her beloved pooch Bruno team up with the Belleville Sisters--an aged song-and-dance team from the days of Fred Astaire--to rescue him.",
    "average_rating": null,
    "budget": 8000000,
    "box_office": 1477676,
    "genre": [
      "Animation"
    ],
    "language": [
      "Français",
      "Português"
    ]
  },
  {
    "movie_id": 42059,
    "name": "Kizumonogatari Part 3: Reiketsu",
    "release_date": "2017-01-06T00:00:00+00:00",
    "description": "With help from Meme Oshino, the apparition specialist, Koyomi defeats the three powerful vampire hunters: Dramaturgy, Episode and Guillotinecutter. Koyomi takes back all the limbs of Kiss-shot Acerola-orion Heart-under-blade in order to become a human again.",
    "average_rating": null,
    "budget": 0,
    "box_office": 0,
    "genre": [
      "Animation"
    ],
    "language": [
      "日本語"
    ]
  },
  {
    "movie_id": 37225,
    "name": "Frank & Wendy",
    "release_date": "2004-01-01T00:00:00+00:00",
    "description": "Two American secret agents - Frank and Wendy - are sent to the world's hotbed of danger, known as Estonia. Estonia is a silly place, perhaps even sillier than the agents themselves. Frank and Wendy, for whom saving the world is their daily work, achieve both mental and manual feats with the greatest of ease. It appears that nothing can prevent their ultimate victory, but go figure. The axis of evil does not wither and attacks the super-agents from where they can least expect it...",
    "average_rating": null,
    "budget": 0,
    "box_office": 0,
    "genre": [
      "Animation"
    ],
    "language": [
      "Eesti"
    ]
  },
  {
    "movie_id": 980,
    "name": "The Love Bug",
    "release_date": "1968-12-22T00:00:00+00:00",
    "description": "Herbie is a car - but no ordinary car. The story follows the Volkswagen Beetle with a mind of its own from the showroom to the race track, with various close escapes in between. Three further Herbie movies were to follow.",
    "average_rating": null,
    "budget": 0,
    "box_office": 0,
    "genre": [
      "Comedy"
    ],
    "language": [
      "English",
      "Español",
      "广州话 / 廣州話"
    ]
  },
  {
    "movie_id": 29892,
    "name": "Just About Famous",
    "release_date": "2015-04-21T00:00:00+00:00",
    "description": "When fans cannot get close to the real thing, these professionals step in to fill the void. As the old adage goes, 'imitation is the sincerest form of flattery.' From a celebrity impersonator convention to their lives across the country, JUST ABOUT FAMOUS chronicles the few who have had the fortune, or curse, of looking like the most recognizable people on the planet.",
    "average_rating": null,
    "budget": 0,
    "box_office": 0,
    "genre": [
      "Comedy"
    ],
    "language": [
      "N/A"
    ]
  },
  {
    "movie_id": 32437,
    "name": "Get a Clue",
    "release_date": "2002-01-01T00:00:00+00:00",
    "description": "A rich kid and her friends investigate the disappearance of one of her teachers.",
    "average_rating": null,
    "budget": 0,
    "box_office": 0,
    "genre": [
      "Family"
    ],
    "language": [
      "English"
    ]
  }
]
  1. curl -X 'POST' \ 'https://three65mm.onrender.com/users/34/rate/1?rating=5' \ -H 'accept: application/json' \ -d ''

Response

{
  "success": true
}
  1. curl -X 'POST' \ 'https://three65mm.onrender.com/users/34/watch/1' \ -H 'accept: application/json' \ -d ''

Response

{
  "success": true
}

New Flows

Example Flow 1

  1. curl -X 'POST' \ 'https://three65mm.onrender.com/users/signup' \ -H 'accept: application/json' \ -H 'Content-Type: application/json' \ -d '{ "username": "intenseacorn47" }'

Response

{
  "success": true
}
  1. curl -X 'GET' \ 'https://three65mm.onrender.com/users/login?username=intenseacorn47' \ -H 'accept: application/json'

Response

{
  "user_id": 37
}
  1. curl -X 'POST' \ 'https://three65mm.onrender.com/users/37/add/1' \ -H 'accept: application/json' \ -d ''

Response

{
  "success": true
}
  1. curl -X 'GET' \ 'https://three65mm.onrender.com/users/37/list' \ -H 'accept: application/json'

Response

[
  {
    "movie_id": 1,
    "name": "Toy Story",
    "release_date": "1995-10-30T00:00:00+00:00",
    "description": "Led by Woody, Andy's toys live happily in his room until Andy's birthday brings Buzz Lightyear onto the scene. Afraid of losing his place in Andy's heart, Woody plots against Buzz. But when circumstances separate Buzz and Woody from their owner, the duo eventually learns to put aside their differences.",
    "average_rating": null,
    "budget": 30000000,
    "box_office": 373554033
  }
]

Example Flow 2

  1. curl -X 'POST' \ 'https://three65mm.onrender.com/groups/new/37' \ -H 'accept: application/json' \ -H 'Content-Type: application/json' \ -d '{ "group_name": "OG Group", "group_description": "Group with Id 0", "group_interests": [ "Being first" ], "group_scores": [ "0" ] }'

Response

{}
  1. curl -X 'GET' \ 'https://three65mm.onrender.com/groups/list/' \ -H 'accept: application/json'

Response

Internal Server Error
  1. Find a group, but group ID was ever given
  2. Delete group, but no group ID is ever given

Example Flow 3

  1. curl -X 'GET' \ 'https://three65mm.onrender.com/movies/user/37' \ -H 'accept: application/json'

Response

{
  "movie_id": 21143,
  "name": "My Perestroika",
  "release_date": "2010-01-24T00:00:00+00:00",
  "description": "Tells the story of five people from the last generation of Soviet children who were brought up behind the Iron Curtain. Just coming of age when the USSR collapsed, they witnessed the world of their childhood crumble and change beyond recognition. Through the lives of these former schoolmates, this intimate film reveals how they have adjusted to their post-Soviet reality in today's Moscow.",
  "average_rating": null,
  "budget": 0,
  "box_office": 0
}
  1. curl -X 'GET' \ 'https://three65mm.onrender.com/movies/21143' \ -H 'accept: application/json'

Response

{
  "movie_id": 21143,
  "name": "My Perestroika",
  "release_date": "2010-01-24T00:00:00+00:00",
  "description": "Tells the story of five people from the last generation of Soviet children who were brought up behind the Iron Curtain. Just coming of age when the USSR collapsed, they witnessed the world of their childhood crumble and change beyond recognition. Through the lives of these former schoolmates, this intimate film reveals how they have adjusted to their post-Soviet reality in today's Moscow.",
  "average_rating": null,
  "budget": 0,
  "box_office": 0
}
  1. curl -X 'GET' \ 'https://three65mm.onrender.com/movies/available/?name=My%20Perestroika' \ -H 'accept: application/json'

Response

[]
tarannssingh commented 4 hours ago

Existing:

New: Example Flow 2:

Thank you.