Building REST APIs with Django Create your own self-describing and specification-compliant APIs in minutes.
Keep in touch! @byrondover
Four Technologies 1. Django 2. Django Rest Framework 3. JSON API Specification 4. 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)
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

Editor's Notes

  • #14 HATEOAS (Hypermedia as the Engine of Application State)