A lightweight and simple RESTful API built with Django REST framework (Python) to access data about slayer characters, breathing styles, and roles from the Kimetsu No Yaiba universe.
| Component | Technology | Purpose |
|---|---|---|
| Backend | RESTful server and data logic. | |
| Database | API data storage. | |
| Frontend | Welcome page and API documentation. |
Follow these steps to run the API in your local environment.
- Python 3+
pip(Python package installer)
git clone https://github.com/DaniDevGS/Demon-Slayer-API-REST
cd Demon-Slayer-API-RESTUsing a virtual environment is recommended to isolate project dependencies.
# Create virtual environment
python -m venv venv
# Activate virtual environment
# On Windows:
.\venv\Scripts\activate
# On macOS/Linux:
source venv/bin/activate
# Install dependencies
pip install -r requirements.txtIn the .env_example file, it looks like this:
SECRET_KEY=your_secret_key
DEBUG=your_debugRun the Django server:
python manage.py runserver 0.0.0.0:8000The API exposes the following REST endpoints (currently supports GET requests only):
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/cazadores/ | Retrieves the full list of all demon slayers. |
| GET | /api/cazadores/id/ | Retrieves a specific slayer by ID. |
To retrieve information for Tanjiro Kamado (ID 1), send a request to:
GET http://localhost:8000/api/cazadores/1{
"id": 1,
"nombre": "Tanjiro Kamado",
"descripcion": "Tanjirō Kamado es el protagonista de la serie de manga Kimetsu no Yaiba. Es un adolescente que emprende una búsqueda para restaurar la humanidad de su hermana, Nezuko, quien se convirtió en un demonio después de que su familia fuera asesinada por Muzan Kibutsuji.",
"rol": "Principales",
"imagen": "/media/imagenes/Tanjiro_Anime.webp",
"respiracion": [
"Respiración del Sol",
"Respiración del Agua"
]
}| Method | Endpoint | Description |
|---|---|---|
| GET | /api/respiraciones/ | Retrieves the full list of all Demon Slayer breathing styles. |
| GET | /api/respiraciones/id/ | Retrieves a specific breathing style by ID. |
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/posturas/ | Retrieves the full list of all Demon Slayer breathing forms. |
| GET | /api/posturas/id/ | Retrieves a specific breathing form by ID. |
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/roles/ | Retrieves the full list of all narrative roles in Demon Slayer. |
| GET | /api/roles/id/ | Retrieves a specific narrative role by ID. |
