🔌
Movie Ratings API
This project is a simple Python API that manages movies and their respective ratings. It serves as a centralized hub for movie enthusiasts to share…
This project is a simple Python API that manages movies and their respective ratings. It serves as a centralized hub for movie enthusiasts to share…
This project is a simple Python API that manages movies and their respective ratings. It serves as a centralized hub for movie enthusiasts to share their opinions, discover new films, and assess the quality of movies they've watched.
Before you begin, ensure you have met the following requirements:
git clone https://github.com/yourusername/your-project.git
cd your-project
source venv/bin/activate # On Windows, use venv\Scripts\activate
pip install -r requirements.txt
Once the server is running, interact with the API at http://127.0.0.1:8000:
GET /movies → returns a list of popular movies from TMDB
GET /movies/550 → returns details for the movie with id 550
POST /movies/550/rate?rating=8 → responds with {"message": "Movie rated successfully."}
uvicorn main:app --reload