~/talk

Django REST API - So easy you can learn it in 25 minutes

Talkat DjangoCon US 2014 · 2014-08-30..09-06· [web-platform, python]
slides:none on file

Promises to teach enough to get a working API in 25 minutes and actually walks through concrete code: serializers as forms that map Tweet model fields to JSON and include field and cross-field validators; permission examples that limit edits to the author; model viewsets give full CRUD plus router commands that auto-generate list and detail endpoints; unit test example that posts invalid data expecting HTTP 400; demo of the browsable API and notes on when DRF struggles with legacy, tightly coupled models.

AI-written summary · about

  1. 0:00Intro
  2. 1:31HTTP Verbs
  3. 1:52What do REST endpoints look like?
  4. 2:47Common HTTP Response Codes
  5. 3:29Idempotency
  6. 4:51And a ModelSerializer
  7. 5:38The Result
  8. 6:13Field Validation
  9. 7:38Permissions
  10. 8:55ModelViewSets
  11. 10:14Generic Views
  12. 11:11Requests
  13. 11:54Responses
  14. 13:17ViewSet Routing
  15. 16:34Does our validation work?
  16. 18:11When to use it?
  17. 18:52When to be cautious (IMHO)
  18. 20:00Next Steps
~/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.