A REST API built with Django 3 and Django REST Framework for a video catalog (Aluraflix). This repository focuses on automated tests and API documentation (Swagger / OpenAPI).
- CRUD-style REST endpoints with Django REST Framework
- Automated test suite (Django test runner)
- Swagger/OpenAPI documentation (Swagger UI / ReDoc)
- SQLite by default (can be configured in
setup/settings.py)
- Python 3.x
- Django 3.x
- Django REST Framework
- Swagger/OpenAPI docs tooling
- SQLite (default)
git clone https://github.com/KentoImayoshi/PrjAPIDjango.git cd PrjAPIDjango
Linux/macOS
python -m venv .venv source .venv/bin/activate
Windows (PowerShell)
python -m venv .venv ..venv\Scripts\Activate.ps1
pip install -r requirements.txt
python manage.py migrate python manage.py runserver
(Optional) Admin:
python manage.py createsuperuser http://localhost:8000/admin/
After starting the server, try:
http://localhost:8000/swagger/
http://localhost:8000/api/docs/
If none of them work, check setup/urls.py for the configured docs route.
python manage.py test
PrjAPIDjango/
├── README.md
├── .gitignore
├── requirements.txt
├── manage.py
├── setup/
│ ├── settings.py
│ ├── urls.py
│ ├── wsgi.py
│ └── asgi.py
└── aluraflix/
├── models.py
├── serializers.py
├── views.py
├── urls.py
├── tests/
│ ├── test_models.py
│ ├── test_serializers.py
│ └── test_views.py
└── migrations/
└── __init__.py
Originally built while following the Alura course “API com Django 3: Aprofundando em testes e documentação” and maintained as a portfolio project.