Welcome to the Anime API Backend repository! This project serves as the backend of a full stack application, providing APIs for three popular anime series: Attack on Titan, My Hero Academia, and Jujutsu Kaisen. These APIs are created using the Django Rest Framework (DRF).
This repository contains the backend code for a full stack application, featuring APIs for three renowned anime series. The APIs are designed to deliver data related to characters, episodes, and other relevant information from Attack on Titan, My Hero Academia, and Jujutsu Kaisen. The backend is built with Django and Django Rest Framework, providing a robust and scalable solution for anime enthusiasts.
- Django Rest Framework: Utilizes DRF for building and consuming RESTful APIs.
- Modular Structure: Separate modules for each anime series to maintain clean and manageable code.
- CRUD Operations: Perform Create, Read, Update, and Delete operations on the anime data.
- Authentication: Secure API endpoints with JWT authentication.
- Pagination: Handle large sets of data with ease using pagination.
To get a local copy up and running, follow these simple steps.
- Clone the repository
git clone https://github.com/your_username/anime-api-backend.git
- Navigate to the project directory
cd anime-api-backend - Create a virtual environment
python -m venv venv
- Activate the virtual environment
- On Windows:
venv\Scripts\activate
- On macOS/Linux:
source venv/bin/activate
- On Windows:
- Install dependencies
pip install -r requirements.txt
- Apply migrations
python manage.py migrate
- Run the development server
python manage.py runserver
To use the APIs, start the development server and navigate to http://127.0.0.1:8000 in your browser or use tools like Postman to interact with the endpoints.
- List all characters
GET /api/attack-on-titan/characters/ - Retrieve a character by ID
GET /api/attack-on-titan/characters/{id}/ - Create a new character
POST /api/attack-on-titan/characters/ - Update a character
PUT /api/attack-on-titan/characters/{id}/ - Delete a character
DELETE /api/attack-on-titan/characters/{id}/
- List all characters
GET /api/my-hero-academia/characters/ - Retrieve a character by ID
GET /api/my-hero-academia/characters/{id}/ - Create a new character
POST /api/my-hero-academia/characters/ - Update a character
PUT /api/my-hero-academia/characters/{id}/ - Delete a character
DELETE /api/my-hero-academia/characters/{id}/
- List all characters
GET /api/jujutsu-kaisen/characters/ - Retrieve a character by ID
GET /api/jujutsu-kaisen/characters/{id}/ - Create a new character
POST /api/jujutsu-kaisen/characters/ - Update a character
PUT /api/jujutsu-kaisen/characters/{id}/ - Delete a character
DELETE /api/jujutsu-kaisen/characters/{id}/
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/YourFeature) - Commit your Changes (
git commit -m 'Add some YourFeature') - Push to the Branch (
git push origin feature/YourFeature) - Open a Pull Request
Distributed under the MIT License. See LICENSE for more information.
Thank you for visiting the Anime API Backend repository! If you have any questions, feel free to open an issue or reach out to the maintainers. Enjoy exploring the APIs!