Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Whipping up a RESTful life with Django REST Framework

Whipping up a RESTful life with Django REST Framework

Presentation given to the Cape Town Python User Group (CTPUG) on Saturday April 18th 2015

70a03732569cbb2f477831558f79f1ee?s=128

Mike Jones

April 18, 2015
Tweet

Transcript

  1. [~] Western Cape Labs Mike Jones @imsickofmaps WHIPPING UP A

    RESTful LIFE WITH DJANGO REST FRAMEWORK
  2. Western Cape Labs ~ [ ] smart apps for dumb

    phones smart sites for busy people
  3. keeps interfaces simple a style not a standard WHY ARE

    REST APIs IMPORTANT? implementation agnostic read: otw.io/g/web-api.pdf
  4. www.django-rest-framework.org

  5. started getting

  6. working get it define a serializer make your model link

    to a view expose a url
  7. model make your

  8. serializer define a

  9. view link to a

  10. url expose a

  11. tests! write some

  12. tests! write some

  13. api browsable

  14. browsable api

  15. let’s go crazy

  16. Thanks. mike@westerncapelabs.com @imsickofmaps