1. What is an API?
2. What is a web API?
3. What is a REST API?
4. What is an endpoint?
5. What are HTTP Verbs?
6. What is the difference between HTTP and HTTPS?
7. What are status codes?
8. What is the difference between authentication and authorization?
9. What is a browsable API?
10. What is CORS?
11. How to fix CORS error in Django?
12. What is the difference between stateful and stateless?
13. What is Django Rest Framework?
14. What are benefits of using Django Rest Framework?
15. What are serializers?
16. What are Permissions in DRF?
17. How to add login in the browsable API provided by DRF?
18. What are Project-Level Permissions?
19. How to make custom permission classes?
20. What is Basic Authentication?
21. What are the disadvantages of Basic Authentication?
22. What is session authentication?
23. What are the pros and cons of session authentication?
24. What is Token Authentication?
25. What are pros and cons of token authentication?
26. What is the difference between cookies vs localStorage?
27. Where should token be saved - cookie or localStorage?
28. What are disadvantages of Django REST Framework's built-in TokenAuthentication?
29. What are JSON Web Tokens(JWTs)?
30. What are benefits of JWT?
31. What is the difference between a session and cookie?
32. What is the difference between cookie and tokens?
33. What's an access token?
34. What is meant by a bearer token?
35. What is the security threat to access token?
36. What is a refresh token?
37. What are the best practices when using token authentication?
38. What is cookie-based authentication?
39. What are viewsets in DRF?
40. What are routers in DRF?
41. What is the difference between APIViews and Viewsets in DRF?
42. What is the difference between GenericAPIView and GenericViewset?
43. What is REST and REST API?
44. How do you install Django REST Framework?
45. What are the benefits of using Django REST Framework?
46. What are the different types of APIs?
47. What are the main principles of REST architecture?
48. What is a serializer in Django REST Framework?
49. How do you define a serializer in DRF?
50. How can you perform validation using serializers?
51. What is deserialization in the context of Django REST Framework?
52. How does Django REST Framework handle JSON deserialization?
53. What is the purpose of serializers in Django REST Framework when it comes to
deserialization?
54. What are function-based API views in Django REST Framework?
55. How do you handle different HTTP methods in a function-based API view?
56. : What are class-based API views in Django REST Framework?
57. What are the main advantages of using class-based views for building APIs?
58. Explain the role of mixins in class-based views. Provide an example scenario where mixins
are useful.
59. How do you handle different HTTP methods in a class-based API view?
60. What is validation in Django REST Framework?
61. How can you perform validation in DRF?
62. Explain the difference between field-level validation and serializer-level validation.
63. How can you raise validation errors in DRF?
64. What are Generic API Views in DRF?
65. What are Mixins in DRF?
66. How do you use Mixins in DRF?
67. Explain the difference between ListAPIView and RetrieveAPIView.
68. What is a Viewset in DRF?
69. How do you map URLs to a Viewset in DRF?
70. Explain the difference between a regular View and a Viewset.
71. How can you customize the behavior of a Viewset in DRF?
72. Explain the purpose of authentication in a DRF-based API.
73. What role do permissions play in DRF, and how do they enhance API security?
74. Describe the difference between authentication and authorization in the context of DRF.
75. What is Basic Authentication in DRF, and when is it typically used?
76. Explain how Session Authentication works in DRF. When is it commonly used?
77. What are some potential security concerns with Basic Authentication, and how can they be
mitigated?
78. Describe Token Authentication in DRF. How does it improve security compared to Basic
Authentication?
79. What steps are involved in generating and using an authentication token for a user in a
DRF application?
80. When would you recommend using Token Authentication over other authentication
methods in DRF?
81. What is throttling in DRF, and why is it important for API management?
82. List and briefly describe at least three built-in throttling classes provided by DRF.
83. How can you implement request rate limiting for specific views or user groups using
throttling classes in DRF?
84. Explain the purpose of data filtering in DRF. When is it beneficial in API development?
85. What is the significance of the filter_backends attribute in a DRF view, and how does it
impact data filtering?
86. Why is pagination important in the context of API design, particularly when dealing with
large data sets? Enumerate its advantages.
87. Describe the differences between page-based pagination and cursor-based pagination in
DRF. In which scenarios would you use each?
88. What are the advantages of using DRF?
89. How does serialization work in DRF?
90. What are the different authentication schemes supported by DRF?
91. How does DRF handle versioning of APIs?
92. What are generic views in DRF?
93. How does DRF handle pagination?
94. Does DRF support relational databases?
95. How does DRF handle errors and exceptions?
96. Does DRF support testing?
97. What is the role of serializers in DRF?
98. How is request parsing handled in DRF?
99. What is the purpose of filtering in DRF?
100. Can DRF handle file uploads?
101. How does DRF handle content negotiation?