~/talk

Building a REST API with Django & Django REST Framework

Talkat DjangoCon US 2014 · 2014-08-30..09-06· [django, api-design]
links:none on file
slides:none on file

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

  1. 0:00Kryptonite Sponsors
  2. 0:45Goal: Build REST API
  3. 1:40Selecting a Starting point
  4. 2:49Learning Basic Building Blocks
  5. 3:28Data Formats Provided by Django REST Framework
  6. 3:41Considerations Before Building a REST API
  7. 3:58'Disabling Certain API Views
  8. 8:37Adding Custom Validators & Handling Validation Errors
  9. 10:25Manipulating Data Flowing within the Application
  10. 13:38Enabling a Single API Call to Accept Multiple Input Formats
  11. 16:30Customizing the Save Process Behind an API Post
  12. 18:47Documentation Considerations
  13. 20:27Other Lessons Learned
  14. 26:13Closing Remarks
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.