Django Ninja에 대해 알아봅니다.
참고) https://django-ninja.dev/

▶︎Django Ninja
: Django Ninja is a web framework for building APIs with Django and Python 3.6+ type hints.
- Django의 공식 REST framework는 아니지만 Django 기반으로 API를 빠르고 간편하게 만들 수 있는 라이브러리 중 하나.
- Django Ninja는 전통적인 Django REST framework의 대안 또는 보완재. REST API 개발을 좀 더 간단하고 효율적으로 하고 싶을 때 선택지가 될 수 있다.
Key features
- Easy: Designed to be easy to use and intuitive.
- FAST execution: Very high performance thanks to Pydantic and async support.
- Fast to code: Type hints and automatic docs lets you focus only on business logic.
- Standards-based: Based on the open standards for APIs: OpenAPI (previously known as Swagger) and JSON Schema.
- Django friendly: (obviously) has good integration with the Django core and ORM.
- Production ready: Used by multiple companies on live projects.
Pydantic
API Documentation
- /docs: 엔드포인트에 대해 swagger 문서를 제공한다.
설치
pip install django-ninja