DRF Easy Level Notes
DRF Easy Level Notes
DRF is a toolkit to build APIs in Django. It helps your Django app talk to other apps by sending and
settings.py.
A serializer converts Django model objects into JSON and vice versa. It acts like a translator.
Use the @api_view decorator to define allowed methods like GET, and return a Response object.
APIView lets you write class-based API views using methods like get(), post(), etc.
18. What is the difference between GET, POST, PUT, and DELETE in DRF?
It makes the API look nice in the browser with forms for testing.