1. API and it's types
SOAP, RPC, Websocket, REST
# 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
# 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
# Topic covered
* REST API
* REST Architectural Constraints
* Methods of REST API
# Topic covered
* Serialization
* Serializer
* ModelSerializer
* Regular Django views
* List View, Detail View
* Customize the serialization behavior
# 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
# Topic covered
* Class-based Views
* APIview
* Mixins class based views
* Generic class based views
# Topic covered
* ViewSets
* viewsets.ViewSet
* viewsets.ModelViewSet
* ReadOnlyModelViewSet
* GenericViewSet
* Routers
* SimpleRoute
* DefaultRouter
* Trade-offs between views vs viewsets
# Topic covered
* ModelSerializer vs HyperlinkedModelSerializer
* ReadOnlyField
* PrimaryKeyRelatedField
* StringRelatedField
* SlugRelatedField
* HyperlinkedRelatedField
* HyperlinkedIdentityField
* Display related model
# Topic covered
* Authentication
* Authentication vs Authorization
* How authentication is determined
* Setting the authentication scheme
* Types of Authentication
* TokenAuthentication
* SessionAuthentication
* BasicAuthentication
* Permissions
# Topic covered
* TokenAuthentication
* Django-rest-auth
CORS is a security mechanism enforced by web browsers to restrict cross-origin HTTP requests.
CORS is a mechanism implemented by browsers that block websites to request data from some other URL.
When a browser makes a request, it adds an origin header to the request message.
If it goes to the server of the exact origin, it is allowed by the browser; if it does not, the browser blocks it.
gets error like Cross-Origin Request Blocked