This project is an API integration that seamlessly displays movie details. π₯β¨ It is built using Django, a Python-based backend framework, and provides API links to fetch movie-related data.
- Retrieve a list of movies with details ποΈ
- Create and manage movie collections π
- User registration and authentication π
- Track API request counts and reset them π
- Built with a scalable and modular architecture βοΈ
- Backend: Django, Python π
- Database: SQLite ποΈ
- API: Django REST Framework π
Follow these steps to set up and run the application:
- Clone the repository:
git clone https://github.com/Rohitswami16/movie_api_management.git
- Navigate to the project directory:
cd movie_api_management
- Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On macOS/Linux venv\Scripts\activate # On Windows
- Install dependencies:
pip install -r requirements.txt
- Apply database migrations:
python manage.py migrate
- Start the Django development server:
python manage.py runserver
- Access the API endpoints as described below.
Modify the URLs as needed to get the desired output.
- URL:
http://127.0.0.1:8000/movies/
- Description: Retrieves the list of available movies. π¬
- URL:
http://127.0.0.1:8000/collection/
- Description: Fetches the movie collection data. π₯
- URL:
http://127.0.0.1:8000/createcollection/
- Description: Allows users to create a new collection of movies. ποΈ
- URL:
http://127.0.0.1:8000/register/
- Description: Registers a new user in the system. π
- URL:
http://127.0.0.1:8000/request-count/
- Description: Displays the number of API requests made by a user. π
- URL:
http://127.0.0.1:8000/request-count/reset
- Description: Resets the request count for a user. π
This project is licensed under the MIT License - see the LICENSE file for details.
For any inquiries or issues, reach out via email at [email protected].
β‘ Ensure the Django server is running before accessing these endpoints! π