Créer une api publique avec Django REST framework
-
Upload
bleemeo -
Category
Technology
-
view
178 -
download
6
Transcript of Créer une api publique avec Django REST framework
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