Short and Crispy
  • Post
  • Categories
  • Tags
  • About
  • Search
Short and Crispy

Search Short and Crispy

#API


1. API and it's types

SOAP, RPC, Websocket, REST

July 5, 2023

# Topic covered
* API
* Why would we need an API?
* Types of APIs based on scope of use
* Types of APIs based on architecture
* WEB API
* What Is GraphQL? REST vs. GraphQL
[Read More]
#API  #DRF  #Django 

2. Rest Framework

Django Rest Framework

July 7, 2023

# Topic covered
* REST API
* REST Architectural Constraints
* Methods of REST API
[Read More]
#DRF  #API  #Django 

3. DRF Serialization

Serializer and Model Serializer

July 8, 2023

# Topic covered
* Serialization
* Serializer
* ModelSerializer
* Regular Django views
  * List View, Detail View
* Customize the serialization behavior
[Read More]
#DRF  #API  #Django 

4. DRF Function based View

Requests and Responses, Function based View

July 9, 2023

# Topic covered
* Request Object
* Response Object
* DRF provides two wrappers to write API views
  * Function based views - @api_view
  * Class based views - APIView
* Function based views - @api_view
[Read More]
#DRF  #API  #Django 

5. DRF Class-based Views

APIview, Mixins, Generic - Class Based Views

July 10, 2023

# Topic covered
* Class-based Views
* APIview
* Mixins class based views
* Generic class based views
[Read More]
#DRF  #API  #Django 

6. DRF ViewSets & Routers

ViewSet, ModelViewSet, ReadOnlyModelViewSet, GenericViewSet

July 11, 2023

# Topic covered
* ViewSets
  * viewsets.ViewSet
  * viewsets.ModelViewSet
  * ReadOnlyModelViewSet
  * GenericViewSet
* Routers
  * SimpleRoute
  * DefaultRouter
* Trade-offs between views vs viewsets
[Read More]
#DRF  #API  #Django 

7. Relationships & Hyperlinked APIs

ModelSerializer, HyperlinkedModelSerializer

July 12, 2023

# Topic covered
* ModelSerializer vs HyperlinkedModelSerializer
* ReadOnlyField
* PrimaryKeyRelatedField
* StringRelatedField
* SlugRelatedField
* HyperlinkedRelatedField
* HyperlinkedIdentityField
* Display related model
[Read More]
#DRF  #API  #Django 

8. Authentication & Permissions

TokenAuthentication, SessionAuthentication, BasicAuthentication

July 13, 2023

# Topic covered
* Authentication
  * Authentication vs Authorization
  * How authentication is determined
  * Setting the authentication scheme
* Types of Authentication
  * TokenAuthentication
  * SessionAuthentication
  * BasicAuthentication
* Permissions
[Read More]
#DRF  #API  #Django 

9. TokenAuthentication

Django-rest-auth, Dj-rest-auth

July 13, 2023

# Topic covered
* TokenAuthentication
* Django-rest-auth
[Read More]
#DRF  #API  #token-auth  #Django 

 •  2026  •  Short and Crispy