Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Build API With Django REST Framework

Build API With Django REST Framework

Ngalam Backend Community

February 20, 2019
Tweet

More Decks by Ngalam Backend Community

Other Decks in Programming

Transcript

  1. Express Your Feeling With Code Installation Virtual Environment: • pip

    install Django • pip install djangorestframework INSTALLED_APPS = ( 'rest_framework', )
  2. Express Your Feeling With Code How data is represented. Serializers

    • BaseSerializer • HyperlinkedModelSerializer • ListSerializer • ModelSerializer • Serializer
  3. Express Your Feeling With Code Powerful pattern that allows us

    to reuse common functionality. Class based Views • Mixins • Generics • Viewsets
  4. Express Your Feeling With Code Reference : • django-rest-framework.org •

    cdrf.co Example project : • github.com/mahrus-kh/meetup-nbc-drf • meetup-nbc-drf.herokuapp.com