Get All Movie
To get the data in the specified collection. If no parameters are passed, it lists all of them. Otherwise, it lists the documents in the collection matching the specified parameters:
Method : GET
URL : /api/movie
Response : 200 - OK
[
{
"id": 1,
"created_at": "2023-02-01T10:31:57.292987+00:00",
"name": "Top Gun: Maverick",
"description": "After more than thirty years of service as one of the Navy’s top aviators, and dodging the advancement in rank that would ground him, Pete “Maverick” Mitchell finds himself training a detachment of TOP GUN graduates for a specialized mission the likes of which no living pilot has ever seen.",
"image_url": "https://www.themoviedb.org/t/p/w300_and_h450_bestv2/62HCnUTziyWcpDaBO2i1DX17ljH.jpg",
"video_url": "https://youtu.be/qSqVVswa420",
"release_date": "2022-05-27",
"language": "English",
"status": 2,
"director_id": 2,
"studio_id": 1,
"directors": {
"id": 2,
"name": "Christopher McQuarrie",
"image_url": "https://www.themoviedb.org/t/p/w300_and_h450_bestv2/82W339V8turXUdaCajqOyekxhmD.jpg",
"gender": 1,
"biography": "Christopher McQuarrie is an American screenwriter, producer and director. His screenplays include The Usual Suspects, for which he won the 1996 Academy Award, The Way of the Gun and Valkyrie. He is the creator of NBC television series Persons Unknown.",
"country_id": 1,
"created_at": "2023-01-30T14:14:19.719023+00:00"
},
"studios": {
"id": 1,
"name": "Paramount Pictures",
"image_url": "https://upload.wikimedia.org/wikipedia/commons/thumb/8/89/Paramount_Pictures_2022_%28Blue%29.svg/175px-Paramount_Pictures_2022_%28Blue%29.svg.png",
"city": "Hollywood",
"country_id": 1,
"created_at": "2023-01-30T10:17:23.752686+00:00"
},
"movie_categories": [
{
"id": 1,
"movie_id": 1,
"category_id": 1,
"created_at": "2023-02-02T13:08:34.66669+00:00"
},
{
"id": 2,
"movie_id": 1,
"category_id": 6,
"created_at": "2023-02-02T13:08:34.66669+00:00"
}
],
"movie_actors": [
{
"id": 1,
"movie_id": 1,
"actor_id": 1,
"created_at": "2023-02-02T13:08:34.844758+00:00"
},
{
"id": 2,
"movie_id": 1,
"actor_id": 34,
"created_at": "2023-02-02T13:08:34.844758+00:00"
},
{
"id": 3,
"movie_id": 1,
"actor_id": 41,
"created_at": "2023-02-02T13:08:34.844758+00:00"
},
{
"id": 4,
"movie_id": 1,
"actor_id": 111,
"created_at": "2023-02-02T13:08:34.844758+00:00"
},
{
"id": 5,
"movie_id": 1,
"actor_id": 58,
"created_at": "2023-02-02T13:08:34.844758+00:00"
}
]
},
{
"id": 2,
"created_at": "2023-02-02T13:33:10.042563+00:00",
"name": "American Made",
"description": "The true story of pilot Barry Seal, who transported contraband for the CIA and the Medellin cartel in the 1980s.",
"image_url": "https://www.themoviedb.org/t/p/w300_and_h450_bestv2/23ILgoPSO5ShKcTZOuiTVfqFAUB.jpg",
"video_url": "https://youtu.be/AEBIJRAkujM",
"release_date": "2017-08-25",
"language": "English",
"status": 2,
"director_id": 3,
"studio_id": 11,
"directors": {
"id": 3,
"name": "Doug Liman",
"image_url": "https://www.themoviedb.org/t/p/w300_and_h450_bestv2/6ebrRCsERA1IchMiF5SufD66stS.jpg",
"gender": 1,
"biography": "Doug Liman (born July 24, 1965) is an American film director and producer.",
"country_id": 1,
"created_at": "2023-02-02T13:30:13.035565+00:00"
},
"studios": {
"id": 11,
"name": "Cross Creek Pictures",
"image_url": "https://upload.wikimedia.org/wikipedia/commons/thumb/f/f0/Cross_Creek_Pictures_logo.png/220px-Cross_Creek_Pictures_logo.png",
"city": "Los Angeles",
"country_id": 1,
"created_at": "2023-02-02T13:32:31.592987+00:00"
},
"movie_categories": [
{
"id": 3,
"movie_id": 2,
"category_id": 1,
"created_at": "2023-02-02T13:33:10.192313+00:00"
},
{
"id": 4,
"movie_id": 2,
"category_id": 5,
"created_at": "2023-02-02T13:33:10.192313+00:00"
},
{
"id": 5,
"movie_id": 2,
"category_id": 17,
"created_at": "2023-02-02T13:33:10.192313+00:00"
}
],
"movie_actors": [
{
"id": 6,
"movie_id": 2,
"actor_id": 1,
"created_at": "2023-02-02T13:33:10.28729+00:00"
}
]
}
]
Response : 404 - Not Found
Not Found
Response : 500 - Server Error
Internal Server Error