Building a REST API with Django & Django REST Framework
summary
Built a production REST API using Django and Django REST Framework that survives two iterations and handles lists, IP ranges, subnet masks and port ranges; adds LDAP auth and requires business justification; validates inputs with custom regex validators; speeds database saves with bulk_create after creating foreign-key objects individually; implements Accept header versioning to avoid URL proliferation; captures errors to email and DB and keeps 80% code coverage for reliability.
AI-written summary · about
chapters (14)
- 0:00Kryptonite Sponsors
- 0:45Goal: Build REST API
- 1:40Selecting a Starting point
- 2:49Learning Basic Building Blocks
- 3:28Data Formats Provided by Django REST Framework
- 3:41Considerations Before Building a REST API
- 3:58'Disabling Certain API Views
- 8:37Adding Custom Validators & Handling Validation Errors
- 10:25Manipulating Data Flowing within the Application
- 13:38Enabling a Single API Call to Accept Multiple Input Formats
- 16:30Customizing the Save Process Behind an API Post
- 18:47Documentation Considerations
- 20:27Other Lessons Learned
- 26:13Closing Remarks
related talks
25mWrite an API for Almost Anything (or The Amazing Power and Flexibility of Django Rest Framework)
21mBuilding Powerful APIs with Django, Django Rest Framework, and OpenAPI
02h 54m🌐 Building Your First API with Django and Django Rest Framework
46mIntroducing Django REST framework
26mDjango, REST and OpenAPI - a gentle introduction
48mAuto-generating an API using PostgreSQL, Django, and Django REST Framework
30mA state of REST.
46mCreating Solid APIs
