building rest apis with django
TRANSCRIPT
Building REST APIs with DjangoCreate your own self-describing and specification-compliant APIs in minutes.
Keep in touch!
@byrondover
Four Technologies
1.Django2.Django Rest Framework3.JSON API Specification4.Swagger
Technology #1
Migrations
Using inspectdb
Technology #2
Django REST Framework
Django REST Framework
Technology #3
JSON API
JSON API
JSON API
SWAGGER
Technology #4
Swagger Request
Self-describing.
Self-documenting.
Programmatically accessible. GET /api-docs?format=openapi HTTP/1.1
Swagger Response
Human-readable.
Machine-readable.
Precisely describes your API contract.
Putting it all together...
inspectdb (Django)
+
Django Rest Framework (djangorestframework)+
JSON API Specification (djangorestframework-jsonapi)
+
Swagger Schema (django-rest-swagger)
=
Automatic idiomatically RESTful APIs for all your data.
Stop! Demo Time
Questions?
References
http://dev.mysql.com/doc/index-other.html
http://www.django-rest-framework.org
https://www.djangoproject.com
https://github.com/byrondover/ladjango-demo
https://github.com/django-json-api/django-rest-framework-json-api
https://github.com/marcgibbons/django-rest-swagger