Skip to content

About

API REST profesional inspirada en Kimetsu no Yaiba. Desarrollada con Django REST Framework, incluye una base de datos SQLite integrada con 50+ registros, manejo de imágenes y arquitectura escalable. (Uso local bajo licencia de autor).

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

👺 Demon Slayer RESTful API

Demon Slayer Logo

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.

🛠️ Tech Stack


Component Technology Purpose
Backend Backend RESTful server and data logic.
Database Database API data storage.
Frontend Frontend Welcome page and API documentation.

🚀 Setup and Installation

Follow these steps to run the API in your local environment.

Prerequisites

  • Python 3+
  • pip (Python package installer)

1. Clone the Repository

git clone https://github.com/DaniDevGS/Demon-Slayer-API-REST
cd Demon-Slayer-API-REST

2. Create Virtual Environment and Install Dependencies

Using 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.txt

3. Environment Variables Configuration

In the .env_example file, it looks like this:

SECRET_KEY=your_secret_key
DEBUG=your_debug

4. Run the Application

Run the Django server:

python manage.py runserver 0.0.0.0:8000

📚 API Endpoints

The API exposes the following REST endpoints (currently supports GET requests only):

Slayers


Method Endpoint Description
GET /api/cazadores/ Retrieves the full list of all demon slayers.
GET /api/cazadores/id/ Retrieves a specific slayer by ID.

Example: Retrieve a Character

To retrieve information for Tanjiro Kamado (ID 1), send a request to:

GET http://localhost:8000/api/cazadores/1
Response (JSON):
{
    "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"
    ]
}

Breathing Styles


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.

Forms


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.

Roles


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.

About

API REST profesional inspirada en Kimetsu no Yaiba. Desarrollada con Django REST Framework, incluye una base de datos SQLite integrada con 50+ registros, manejo de imágenes y arquitectura escalable. (Uso local bajo licencia de autor).

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages