This API provides access to a movie database and allows users to retrieve information on movies based on various criteria.
This endpoint retrieves all movies featuring a particular star.
Method: GET
Parameters:
star: the name of the star (string)
Example:
GET /movies/name:Tom%20Cruise HTTP/1.1
Host: example.com
Response:
{
"name": ["Top Gun", "Mission: Impossible", "Minority Report"]
}This endpoint retrieves all movies released in a particular year.
Method: GET
Parameters:
year: the year (string)
Example:
GET /movies/year:1999 HTTP/1.1
Host: example.com
Response:
{
"movies": ["The Matrix", "The Sixth Sense", "American Beauty"]
}This endpoint retrieves all movies released before a particular year.
Method: GET
Parameters:
year: the year (string)
Example:
GET /movies/year/before/year:1990 HTTP/1.1
Host: example.com
Response:
{
"movies": ["Back to the Future", "The Terminator", "The Princess Bride"]
}This endpoint retrieves all movies released after a particular year.
Method: GET
Parameters:
year: the year (string)
Example:
GET /movies/year/after/year:2010 HTTP/1.1
Host: example.com
Response:
{
"movies": ["Inception", "The Social Network", "Toy Story 3"]
}This API has the following dependencies:
funcs: A module containing functions for retrieving movie datafastapi: A Python web framework for building APIsurllib.parse: A module for parsing URLs and performing URL encoding/decoding.