créer une api publique avec django rest framework

Post on 13-Jan-2017

167 Views

Category:

Technology

6 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Créer une API publique avec Django REST Framework

Lionel Porcheron Pierre Fersing@lporcheron

Lionelco-founder @Bleemeo10y Ops BackgroundToulouse Devops & Capitole du Libre organizer

Pierreco-founder @BleemeoPython & Django dev for 10y

Monitoring as a Service solution

API in Django + User Interface in ReactJS

Public API

Secure settings

Abstract data model

Best performance

Our Stack

Django REST Framework

Django Guardian (permissions)

DRF Docs (doc)

Django REST Framework JWT (jwt)

Our Sample Model

Authentication & Permissions

Deactivate browsable API

Deactivate HTTP options

Pagination & Search

Request only some fields

Don’t expose your data model

Limitations

2 Factor Authentication Integration

django-sudo integration

Django REST Framework doc…

Django REST Framework errors...

Resources

Workshop “Créer son API avec Django REST framework” this afternoon

Conference “Authentification et autorisation avec Django REST framework”

8 articles from Makina Corpus: https://makina-corpus.com/blog/metier/2015/django-

rest-framework-les-serializer-et-les-exceptions-partie-1

Questions?

@lporcheron

lionel@bleemeo.com / pierref@bleemeo.com

https://blee.moe/pyconfr2016

top related