Query parameters
-
Filter movies by category
-
Filter movies by year greater or equal to year-min
-
Filter movies by year less or equal to year-max
GET
/movies
curl \
-X GET http://api.example.com/movies?category=string \
-H "Authorization: $API_KEY"
Response examples (200)
[
{
"movieId": "string",
"title": "string",
"year": 42,
"category": "string",
"budget": "string",
"boxOffice": "string"
}
]
Response examples (400)
{
"message": "Error message"
}
Response examples (401)
{
"message": "Error message"
}
Response examples (403)
{
"message": "Error message"
}
Response examples (404)
{
"message": "Error message"
}
Response examples (422)
{
"message": "Error message"
}
Response examples (500)
{
"message": "Error message"
}
Response examples (502)
{
"message": "Error message"
}
Response examples (504)
{
"message": "Error message"
}