Slide 1

Slide 1 text

Quick and Robust API with Django Rest Framework Tomás Lima Python Porto #11 in Blip | 30 Jan 2019

Slide 2

Slide 2 text

Motivation

Slide 3

Slide 3 text

What is

Slide 4

Slide 4 text

Django REST framework is a powerful and flexible toolkit for building Web APIs. ● Web Browsable API ● Authentication policies ● Serialization (ORM and non-ORM) ● Customizable ● Extensive documentation ● Community support ● Trusted by internationally recognised companies

Slide 5

Slide 5 text

project structure

Slide 6

Slide 6 text

project manage.py settings.py app app app models.py serializers.py permissions.py filters.py views.py admin.py urls.py

Slide 7

Slide 7 text

Real World Scenario Free Learning API

Slide 8

Slide 8 text

Goal Free Learning API 3 2 1

Slide 9

Slide 9 text

Structure Free Learning API Course Lesson Resource ● name: str ● description: str ● created: datetime ● public: bool ● user: FK ● name: str ● description: str ● public: bool ● course: FK ● user: FK ● name: str ● description: str ● public: bool ● lesson: FK ● user: FK

Slide 10

Slide 10 text

$ git clone http://github.com/synchroack/django-rest-framework-example $ cd django-rest-framework-example Repository: http://github.com/synchroack/django-rest-framework-example Real World Scenario - Free Learning API

Slide 11

Slide 11 text

$ git checkout Real World Scenario - Free Learning API

Slide 12

Slide 12 text

Thank You! Do you want to join me in a new Open Source Project? Repository: https://bit.ly/2MvumbA Tomás Lima [email protected]