Get Detail Studio
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/studio?id=(id)
Response : 200 - OK
{
"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",
"countries": {
"id": 1,
"name": "United States",
"created_at": "2023-01-30T05:58:46.709345+00:00"
},
"movies": [
{
"id": 10,
"created_at": "2023-02-02T14:06:23.789355+00:00",
"name": "Collateral",
"description": "Cab driver Max picks up a man who offers him $600 to drive him around. But the promise of easy money sours when Max realizes his fare is an assassin.",
"image_url": "https://www.themoviedb.org/t/p/w300_and_h450_bestv2/iOpi3ut5DhQIbrVVjlnmfy2U7dI.jpg",
"video_url": "https://youtu.be/-JDf2zIFgO8",
"release_date": "2019-12-27",
"language": "English",
"status": 2,
"director_id": 8,
"studio_id": 1
},
{
"id": 11,
"created_at": "2023-02-02T14:08:42.73668+00:00",
"name": "Top Gun",
"description": "For Lieutenant Pete 'Maverick' Mitchell and his friend and co-pilot Nick 'Goose' Bradshaw, being accepted into an elite training school for fighter pilots is a dream come true. But a tragedy, as well as personal demons, will threaten Pete's dreams of becoming an ace pilot.",
"image_url": "https://www.themoviedb.org/t/p/w300_and_h450_bestv2/xUuHj3CgmZQ9P2cMaqQs4J0d4Zc.jpg",
"video_url": "https://youtu.be/ArOMXELHiLw",
"release_date": "1986-05-16",
"language": "English",
"status": 2,
"director_id": 9,
"studio_id": 1
}
]
}
Response : 404 - Not Found
Not Found
Response : 500 - Server Error
Internal Server Error