Movies API - Brief description of your movies API.
This project is a movies API that provides information about movies, actors, directors, and more. You can use this API to access details such as movie titles, cast, release date, genre, and more.
- Movie Query: Get detailed information about movies.
- Genre Search: Filter movies by genre.
- Actor and Director Information: Access data about the actors and directors of the movies.
- Ratings and Reviews: Discover user ratings and reviews.
-
Create
.env -
after add the next config:
PORT="YOURPORT"
HOST="YOURHOST"
PASSWORD="YOURPASSWORD"
USER="YOURUSER"
DATABASE="YOURDATABASE"Here are some examples of how you can use the API:
GET http://localhost:5000/moviesGET http://localhost:5000/movies?genre=DRAMAPOST http://localhost:5000/movies
Content-Type: application/json
{
"title": "The Social Network",
"year": 2010,
"director": "David Fincher",
"duration": 120,
"poster": "https://i.pinimg.com/originals/7e/37/b9/7e37b994b613e94cba64f307b1983e39.jpg",
"genre": ["Biography", "Drama"],
"rate": 7.7
}