Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hitzseb/chainsaw_man_api
Chainsaw Man RESTful API
https://github.com/hitzseb/chainsaw_man_api
api chainsaw-man django python rest
Last synced: 12 days ago
JSON representation
Chainsaw Man RESTful API
- Host: GitHub
- URL: https://github.com/hitzseb/chainsaw_man_api
- Owner: hitzseb
- Created: 2023-11-01T23:07:44.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-16T02:05:36.000Z (about 1 year ago)
- Last Synced: 2024-11-05T14:52:03.445Z (about 2 months ago)
- Topics: api, chainsaw-man, django, python, rest
- Language: Python
- Homepage: https://chainsawmanapi.pythonanywhere.com/
- Size: 1.59 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Chainsaw Man API
The Chainsaw Man API provides comprehensive information about the world of Chainsaw Man, including characters, sagas, arcs, manga volumes, anime episodes, species, and more. The API is built using Django and utilizes JWT (JSON Web Token) for enhanced access.
## Usage
### Authentication
While basic access is available for anonymous users, enhanced features and higher request limits can be unlocked by registering and obtaining a JWT token. To authenticate, include the access token in the Authorization header of your requests. Token refresh is available at `/api/token/refresh/`.**Note:** Keep tokens secure and avoid sharing them publicly.
### Example Request
```
curl https://chainsawmanapi.pythonanywhere.com/api/character/Pochita/
``````
{
"name": "Pochita",
"picture": "https://chainsawmanapi.pythonanywhere.com/api/character/picture/Pochita.webp/",
"description": "Pochita (ポチタ?) is the Chainsaw Devil (チェンソーの悪あく魔ま Chensō no Akuma?) who embodies the fear of chainsaws. He was the original Chainsaw Man (チェンソーマン Chensō Man?) prior to becoming Denji's heart. He is the overarching titular protagonist of the series.",
"status": "Alive",
"species": {
"name": "Hybrid"
},
"manga_debut": {
"number": 1,
"title": "Dog & Chainsaw",
"cover": "https://chainsawmanapi.pythonanywhere.com/api/manga/cover/Chapter_1.webp",
"url": "https://chainsawmanapi.pythonanywhere.com/api/manga/1/"
},
"anime_debut": {
"number": 1,
"title": "Dog & Chainsaw",
"still": "https://chainsawmanapi.pythonanywhere.com/api/anime/still/Episode_1.webp/",
"date": "2022-10-11",
"url": "https://chainsawmanapi.pythonanywhere.com/api/anime/1/"
}
}
```## Endpoints
- **Sagas:**
- List all sagas: `/api/saga/`
- Detailed information about a specific saga: `/api/saga/number/`- **Arcs:**
- List all arcs: `/api/arc/`
- Detailed information about a specific arc: `/api/arc/number/`- **Volumes:**
- List all manga volumes: `/api/volume/`
- Detailed information about a specific volume: `/api/volume/number/`- **Manga Chapters:**
- List all manga chapters: `/api/manga/`
- Detailed information about a specific manga chapter: `/api/manga/number/`- **Anime Seasons:**
- List all anime seasons: `/api/season/`
- Detailed information about a specific anime season: `/api/season/number/`- **Anime Episodes:**
- List all anime episodes: `/api/anime/`
- Detailed information about a specific anime episode: `/api/anime/number/`- **Species:**
- List all species: `/api/species/`
- Detailed information about a specific species by name: `/api/species/name/`- **Characters:**
- List all characters: `/api/character/`
- Detailed information about a specific character by name: `/api/character/name/`## Technologies Used
- Python 3.10
- Django 4.2.7
- Django Rest Framework 3.14.0
- djangorestframework-simplejwt 5.3.0
- drf-yasg 1.21.7
- Bootstrap 5.3
- Other packages and dependencies as specified in `requirements.txt`## About
This project is developed and maintained by Sebastian Hitz. It is open source under the MIT license. The data is sourced from the Chainsaw Man Wiki.
**GitHub Repository:** [Chainsaw Man API](https://github.com/your-username/chainsaw-man-api)
Feel free to contribute and improve the Chainsaw Man API!